qmetrics.net

Newspaper3k

Python library for news article extraction and curation

Newspaper3k screenshot

Newspaper3k downloads news pages and extracts article text, metadata, images, and summaries. It targets Python 3 and supports many languages with optional NLP helpers.

Overview

Newspaper3k is a Python library for pulling full text and metadata from news URLs. You can download a single article, parse authors and publish dates, extract the main body text, and identify top or embedded images.

For whole sites you can build a source object that discovers category URLs and article links, then download and parse each story. A fulltext helper strips article text from arbitrary HTML when you already fetched the page. Optional NLP steps can derive keywords and short summaries from parsed text.

Language handling includes auto-detection when none is set, plus explicit language codes for multilingual sources. The stack relies on lxml for parsing speed and is designed to work alongside HTTP clients such as requests.

Install on Python 3 via the newspaper3k package name. Debian, Ubuntu, and macOS notes in the docs call out system libraries for lxml, JPEG, and NLP corpora when packaging dependencies locally.

Key features

  • Article download and HTML parse
  • Author and date extraction
  • Top and inline image detection
  • Keyword and summary NLP
  • Multi-threaded article fetching
  • News site URL discovery
  • Ten-plus language support
  • Standalone fulltext from HTML

Use cases

  • Curate articles from news sites
  • Build news monitoring pipelines
  • Extract text for search indexes
  • Aggregate headlines across publishers

Tags

Similar software

Crawl4AI

Web crawler and extraction library for AI pipelines

Crawl4AI turns web pages into clean Markdown or structured JSON for RAG and agents. Use the Python library, Docker server, CLI, or the hosted Crawl4AI Cloud API.

★ 88k⟳ 5 days agoApache-2.0

CloakBrowser

Stealth Chromium wrapper for Playwright and Puppeteer

CloakBrowser ships a patched Chromium binary and drop-in launch helpers for Python, JavaScript, and .NET. Fingerprints are altered at compile time rather than via injected scripts.

★ 33.1k⟳ 2 days agoMIT
Open Source Alternative to:AdsPowerGoLogin+1

ScrapeGraphAI

LLM-driven Python web scraping pipeline library

ScrapeGraphAI builds scraping pipelines with language models and graph logic. You specify what to extract and it processes websites or local HTML, JSON, XML, and Markdown sources.

★ 33k⟳ 1 month agoMIT

OpenDataLoader PDF

PDF parser for structured LLM and accessibility output

Converts PDFs to Markdown, JSON with bounding boxes, and HTML for RAG and analysis. Offers local deterministic mode and optional hybrid AI for hard pages.

★ 30.4k⟳ yesterdayApache-2.0

Crawlee

Node.js web scraping and browser automation library

Crawlee builds reliable crawlers in JavaScript or TypeScript with HTTP or headless browsers, queues, storage, proxies, and retries.

★ 26.6k⟳ yesterdayApache-2.0

Colly

Go framework for web crawlers and scrapers

A Go library that offers a structured API to build crawlers, scrapers, and spiders and pull data from websites.

★ 25.6k⟳ 1 month agoApache-2.0