A python module for parsing HTML into news components.
- Python 3.7
- Newspaper3k 0.2.8
- BeautifulSoup 0.0.1
- Dateutil 2.8.2
- LangDetect 1.0.9
- Extruct 0.13.0
- DeepTranslator 1.5.4
- HTML5Lib 1.1
This is a python package hosted on pypi, so to install simply run the following command:
pip install newsmeta
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)
The project is available under the MIT License.