article-extraction-0.3.0
توضیحات
Article text extraction library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | article-extraction-0.3.0 |
| نام | article-extraction |
| نسخه کتابخانه | 0.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Matigakis Panagiotis |
| ایمیل نویسنده | pmatigakis@gmail.com |
| آدرس صفحه اصلی | https://github.com/pmatigakis/article-extraction |
| آدرس اینترنتی | https://pypi.org/project/article-extraction/ |
| مجوز | MIT |
# 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.
```bash
poetry add "git+https://github.com/pmatigakis/article-extraction.git"
```
# Usage
Extract the content of an article using article-extraction.
```python
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)
```
نیازمندی
| مقدار | نام |
|---|---|
| >=4.7.1 | lxml |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl article-extraction-0.3.0:
pip install article-extraction-0.3.0.whl
نصب پکیج tar.gz article-extraction-0.3.0:
pip install article-extraction-0.3.0.tar.gz