Skip to main content

Article text extraction library

Project description

Article extraction library.

article-extraction is a package that can be used to extract the article content from an HTML page.

Installation

Use poetry to install the library from GitHub.

poetry add "git+https://github.com/pmatigakis/article-extraction.git"

Usage

Extract the content of an article using article-extraction.

from urllib.request import urlopen

from articles.mss.extractors import MSSArticleExtractor

document = urlopen("https://www.bbc.com/sport/formula1/64983451").read()
article_extractor = MSSArticleExtractor()
article = article_extractor.extract_article(document)
print(article)

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

article-extraction-0.3.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

article_extraction-0.3.0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

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