newsmeta
A python module for parsing HTML into news components.
Dependencies :globe_with_meridians:
Installation :inbox_tray:
This is a python package hosted on pypi, so to install simply run the following command:
pip install newsmeta
Usage example :eyes:
In order to use this library simply feed it the downloaded HTML and the URL of the news piece, like so:
import newsmeta
with open("article.html") as article_fh:
article = newsmeta.parse(article_fh.read(), "http://www.article.com/article")
print(article.title)
License :memo:
The project is available under the MIT License.