Skip to content

newspaper

15,187 6 513 MIT
0.2.8 (28 Sep 2018) Dec 28 2012 435.0 thousand (month)

newspaper is a Python package that allows developers to easily extract text, images, and videos from articles on the web.

It is designed to be fast, easy to use, and compatible with a wide variety of websites. It uses advanced algorithms to extract relevant information and metadata from articles, and it also supports several languages.

newspaper includes a http client or can ingest pre-scraped HTML documents.

Example Use


from newspaper import Article

# Create a new article object
article = Article('https://www.example.com/article')

# Download the article
article.download()

# Parse the article
article.parse()

# Print the article text
print(article.text)

# Print the article title
print(article.title)

# Print the article authors
print(article.authors)

# Print the article publication date
print(article.publish_date)

Alternatives / Similar


7,128 2.3.1 (2026-10-06 19:30:24 ago) Jul 17 2019 compare
2,174 2025.4.15 (2025-04-15 04:02:28 ago) Dec 14 2008 compare
2,891 0.9 (2026-08-27 19:29:58 ago) Jun 30 2011 compare
984 0.18.0 (2024-11-08 14:59:22 ago) Oct 27 2015 compare
3,701 0.13.0 (2026-08-12 20:47:22 ago) Oct 20 2013 compare
13,346 1.1.9 (2018-10-21 03:39:17 ago) Aug 24 2018 compare
302 2.0.7 (2022-11-06 07:33:14 ago) Dec 11 2020 compare

Other Languages

2,879 v1.5.0 (2026-09-25 03:00:53 ago) Apr 20 2016 compare
Was this page helpful?