newspaperV3
An advanced library for news extraction, article parsing, and content analysis. This is a fork/version based on the original newspaper library by Lucas Ou-Yang.
Installation
Install the package using pip:
pip install newspaperV3
Basic Usage
Here's a simple example of how to download and parse an article:
from newspaperV3 import Article
import nltk
# NLTK data is required for the first run
# nltk.download('punkt')
url = 'https://edition.cnn.com/2025/07/29/middleeast/israeli-settler-odeh-hathalin-west-bank-oscar-intl'
# Create an Article object
article = Article(url)
# Download and parse the article
article.download()
article.parse()
# Perform Natural Language Processing (NLP)
article.nlp()
# Print the results
print("Title:", article.title)
print("Authors:", article.authors)
print("Publish Date:", article.publish_date)
print("Top Image:", article.top_image)
print("\nSummary:")
print(article.summary)
print("\nKeywords:", article.keywords)
Features
- Article Extraction : Automatically extract clean article text from web pages
- Metadata Parsing : Extract titles, authors, publication dates, and images
- Natural Language Processing : Generate summaries and extract keywords
- Multi-language Support : Process articles in various languages
- Image Processing : Extract and analyze article images
- Content Analysis : Advanced text processing and analysis capabilities
Requirements
- Python 3.6+
- NLTK (for natural language processing)
- Additional dependencies installed automatically
License
This project is licensed under the MIT License.
Metadata
Release files for newspaperV3 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| newspaperv3-0.3.2.tar.gz | 213.9 kB | Without provenance | Details for newspaperv3-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| newspaperv3-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for newspaperv3-0.3.2-py3-none-any.whl |
Total release size: 439.1 kB
Release files / newspaperv3-0.3.2.tar.gz
| Download URL | newspaperv3-0.3.2.tar.gz |
|---|---|
| Size | 213.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8eb00ec14aca73232f360544d20d8cc057691c577493b7ca108fb74bab54d049
|
|
BLAKE2b-256 checksum How to use checksums |
5d8b96394d9aef0ce903e98902f16b7fd0f84beaef3214b13db4f568d889f454
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.7 Linux/6.14.0-32-generic
|
Release files / newspaperv3-0.3.2-py3-none-any.whl
| Download URL | newspaperv3-0.3.2-py3-none-any.whl |
|---|---|
| Size | 225.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b01f2058e53c6dac3c95d6a64f05a6d438ab47974589a52d7465a97d8154360
|
|
BLAKE2b-256 checksum How to use checksums |
1041ae1974766dee26982ed3733071fe1ae4b63088a6a4e1da1655774266a083
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.7 Linux/6.14.0-32-generic
|
Security for newspaperV3 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.