Skip to main content

A python module for parsing HTML into news components.

Project description

newsmeta

PyPi

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

newsmeta-1.0.2.tar.gz (5.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page