Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
An exercise in unsupervised machine learning: Extract Article's Text in HTml documents.
| Date | Stars |
|---|---|
| 2026-07-31 | 430 |
| 2026-08-03 | 430 |
| 2026-08-06 | 430 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
## Note from the author If you're a user of `eatiht` or any other one of my projects ([autocomplete](https://github.com/rodricios/autocomplete), [libextract](https://github.com/datalib/libextract)), I humbly ask that you check out my new project **[wxpath](https://github.com/rodricios/wxpath)**: a declarative web crawler and scraper that extends the [XPath](https://en.wikipedia.org/wiki/XPath) DSL to navigate and scrape web pages. **wxpath** is a natural progression of my work in web data extraction and I am very excited to share it with you. ### A word about this repo (April 13, 2015) [@eugene-eeo](https://github.com/eugene-eeo) and I are reimagining web data extraction: [libextract](https://github.com/libextract/libextract). It supports not only article extraction, but also tabular data extraction! That said, it's very unlikely that I will be pushing any updates to this branch, but I will continue to accept pull requests. Hope to see you at [libextract](https://github.com/libextract/libextract), [Rodrigo](https://twitter.com/rodricios) :) eatiht ====== A python package for **e**xtracting **a**rticle **t**ext **i**n **ht**ml documents. Check out the new twitter-bootstrap-ready [demo](http://retext.us/extract?url=http://phys.org/news/2014-12-faster-than-light-particles.html) produced by the new extraction algorithm! ### Latest News Check out my latest project: [autocomplete - a kid and adult friendly exercise in machine learning](https://github.com/rodricios/autocomplete) I'm collaborating with [Tim Weninger](http://www3.nd.edu/~tweninge/) in a must-read data-driven opinion piece (publish date is tba). I benchmarked Eatiht and many more content extractors; you can follow the [current work here!](https://github.com/rodricios/crawl-to-the-future). Read [Matthew Peters's](https://github.com/matt-peters) article that benchmarked Eatiht, along with few other content extractors written in Python. Follow me on [twitter](https://twitter.com/rodricios) :) ### What people have been saying *You should write a paper on this work* - [/u/queue_cumber](http://www.reddit.com/r/compsci/comments/2ppyot/just_made_what_i_consider_my_first_algorithm_it/cmz0vfj) *This is neat-o. A short and sweet project...* - [/u/CandyCorns_](http://www.reddit.com/r/compsci/comments/2ppyot/just_made_what_i_consider_my_first_algorithm_it/cmz17gv) *This is both useful and shows a simple use case for data mining for the general population - an outreach of sorts.* - [/u/tweninger](http://www.reddit.com/r/compsci/comments/2ppyot/just_made_what_i_consider_my_first_algorithm_it/cmzai6s) At a Glance ----------- #### To install: ```bash pip install eatiht ... easy_install eatiht ``` Note: On Windows, you may need to install lxml manually using: pip install lxml #### Using in Python Currently, there are two new submodules: * etv2.py - class-based approach * v2.py - script-like approach As [requested](https://github.com/rodricios/eatiht/issues/3), etv2.extract will extract not only the text, but also the parent element's html: ```python import eatiht.etv2 as etv2 url = "http://sputniknews.com/middleeast/20141225/1016239222.html" tree = etv2.extract(url) # we know what this does... # print tree.get_text() # add necessary link tags to bootstrap cdn, center content, etc. tree.bootstrapify() print tree.get_html_string() ``` Output: ``` <html><head><title>Syrian Army Kills Nearly 5,000 IS Militants in Three Months: Source / Sputnik International</title> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" type="text/css" rel="stylesheet"></head> <body><h2>Syrian Army Kills Nearly 5,000 IS Militants in Three Months: Source / Sputnik International</h2>... ``` Now what about if that's rendered? [With boostrap](http://web-tier-load-balancer-1502628209.us-west-2.elb.amazonaws.com/bootstrapify?url=http://sputniknews.com/middleeast/20141225/1016239222.html) [Without](http://web-tier-load-balancer-1502628209.us-west-2
Excerpt of 10,044 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:a2cf5e1932a22ddb, llm:Repository description: 'An exercise in unsupervised machine learning: Extract Article's Text in HTml documents.' Language: HTML. No topics provided.
matched fp:a2cf5e1932a22ddb, llm:Repository description: 'An exercise in unsupervised machine learning: Extract Article's Text in HTml documents.' Language: HTML. No topics provided.
matched fp:a2cf5e1932a22ddb, llm:Repository description: 'An exercise in unsupervised machine learning: Extract Article's Text in HTml documents.' Language: HTML. No topics provided.