[Blog]

Article extractors: tools that pull clean text, author, and date from a URL

Which article extractor returns clean text, author, and date from a URL? Exa provides a Contents API for JavaScript-rendered pages. Learn more.

By The Exa Team · Nov 2026

Cover image for Article extractors: tools that pull clean text, author, and date from a URL

An article extractor strips ads, navigation menus and other clutter from a web page and returns the article's clean text, usually with its title, author, and publication date.

At Exa, we extract pages for search and retrieval. Our Contents API returns clean page content from a URL, including JavaScript-rendered pages and PDFs, with the author when the page names one and an estimated publication date.

Below we compare eight tools: one browser extension, three open-source libraries, and four APIs. The comparison covers JavaScript-rendered pages, PDFs, metadata, output format, and price. Then we cover how to choose one and show first-extraction code for @extractus/article-extractor, Trafilatura, and Exa Contents on the same article. Last, we explain what these tools can and can't do about paywalls.

What an article extractor removes and keeps

An extractor sorts every block on a page into boilerplate or article.

  • Removed. Ads, headers, navigation menus, footers, cookie banners, comment threads, and related-article blocks.

  • Kept. Body text, headings, title, author, and publication date.

Most extractors find the main block with heuristics. Results vary by layout, so the same tool can return a clean article from one site and miss the byline on another.

What each extractor handles: JavaScript, PDFs and metadata

Six of the eight tools return author and date. Article Extractor Pro returns the title only, and Firecrawl doesn't document author or date. Each row's first column links to a page about the tool. For PDFs in depth, see PDF to Markdown: converters, open-source tools, and APIs for LLM pipelines.

ToolTypeJavaScript-rendered pagesPDFsAuthor and date returnedOutput formatPrice
Exa ContentsAPIYesYes, at a URLYes; author when the page names one, date estimated from the HTMLMarkdown$1 per 1,000 pages per content type
Article Extractor ProBrowser extensionYes, as your browser renders themNot documentedNo; title onlyPlain textFree to install
@extractus/article-extractorNode.js libraryNo; pass rendered HTMLNot documentedYesHTMLFree, MIT
Apify Article ScraperAPINo; Apify says they "may fail"Not documentedYesMarkdown, text, HTMLFrom $3.50 per 1,000 articles
DiffbotAPIYesYes, in direct callsYesJSONFree for 10,000 credits a month
FirecrawlAPIYesYesNot documentedMarkdown, JSON, HTMLFree for 1,000 credits a month
Mozilla ReadabilityJavaScript libraryYes, from a rendered DOMNot documentedYesHTML, textFree, Apache-2.0
TrafilaturaPython library and CLINo; render firstNot documentedYesTXT, Markdown, CSV, JSON, HTML, XMLFree, Apache-2.0

How to choose an article extractor

The choice comes down to who runs the extraction and how many pages they need. Within each type, three constraints separate the tools: whether JavaScript pages must be rendered first, whether PDFs are handled, and whether author and date come back.

  • Reading a few articles in the browser. Use an extension such as Article Extractor Pro, which works on the open page with no code. It returns the title only, with no author.

  • A code project that fetches pages itself. Use Trafilatura (Python) or @extractus/article-extractor (Node.js). Both are free, run locally, and return metadata, but both need JavaScript pages rendered first in a headless browser. Mozilla Readability (JavaScript, free under Apache-2.0) is another option. It needs a rendered DOM, which you supply, and returns byline and publishedTime.

  • A pipeline that needs clean text and metadata for many URLs. Use an API, where the provider handles fetching. Exa Contents and Diffbot render JavaScript and handle PDFs (Diffbot in direct calls). Both return author and date; Exa Contents returns the author when the page names one and an estimated publication date. Firecrawl renders every page in Chromium, but its author and date are not documented. The Apify Article Scraper uses plain HTTP requests with no browser, and Apify says JavaScript pages "may fail".

Browser extensions

An extension extracts the article in the tab you have open.

Article Extractor Pro is a Chrome extension that strips ads, images, and navigation from a news article and leaves the title and clean text, ready to copy. It opens in a side panel, saves extracted articles locally for 24 hours in a searchable library, and can highlight quotes. Its listing says it works on sites that block automated tools, such as Reuters and WSJ, because it reads pages in your browser.

Reading in your browser also means it works on one page at a time and sees only what you can see. It suits a researcher collecting a few dozen articles by hand, not a pipeline processing thousands of URLs overnight.

Open-source libraries

A library runs inside your code, so you control fetching, retries, and storage.

Node.js and JavaScript

@extractus/article-extractor fetches a URL and returns title, author, published, description, image and content (the article as cleaned HTML). It uses the runtime's standard fetch. To add a proxy, headers, or timeouts, pass your own fetcher. Every field is optional in the type definitions, so a page with no byline returns no author.

// npm install @extractus/article-extractor import { extract } from '@extractus/article-extractor' const article = await extract('https://www.niemanlab.org/2026/10/metas-new-commercial-terms-will-allow-the-scraping-of-news-sites-legal-experts-say/') console.log(article.title, article.author, article.published) console.log(article.content.slice(0, 300))

It doesn't run a browser. For JavaScript pages, render the page in a headless browser first, then pass the HTML string to extractFromHtml().

Mozilla Readability is the JavaScript library behind Firefox Reader View. It parses a DOM you supply and returns title, content, textContent, excerpt, byline, siteName and publishedTime. It modifies that DOM, so its README suggests passing a clone. Wrappers such as readability-cli run it from a terminal.

Python

Trafilatura is a Python package and command-line tool that extracts main text, comments, and metadata. It keeps comments and tables by default. The command-line docs list --no-comments and --no-tables to skip them. --with-metadata adds title, author, and date. --only-with-metadata keeps only documents with a title, URL, and date.

This command extracts the same Nieman Lab article as Markdown, without comments or tables, and with metadata:

pip install trafilatura trafilatura -u "https://www.niemanlab.org/2026/10/metas-new-commercial-terms-will-allow-the-scraping-of-news-sites-legal-experts-say/" \ --no-comments --no-tables --with-metadata --markdown

Trafilatura works on raw HTML. Its troubleshooting page says to render JavaScript pages with a browser library such as Playwright first, then pass the HTML to extract().

Article extraction APIs

A web scraping API moves fetching, proxies, and extraction to the provider: you send URLs and get text back.

  • Article Scraper & News Scraper API (the Apify Article Scraper in the table): A community-maintained Actor on the Apify Store, Apify's marketplace of cloud scraping programs. It uses plain HTTP requests, with no browser, to convert article URLs into Markdown, text, or HTML for AI and RAG workflows. Pricing starts at $3.50 per 1,000 articles.

  • Diffbot: The Article API returns full text, cleaned HTML, images, author, date and tags, and executes page JavaScript. Each page costs one credit.

  • Firecrawl: The scrape endpoint renders every page in Chromium, strips navigation, ads, and scripts, and returns Markdown, JSON, HTML, or page metadata.

  • Exa Contents: Our Contents API takes a list of URLs and returns each page as Markdown. Each result includes title, plus author when the page names one and an estimated publishedDate. Text defaults to verbosity: "compact", which focuses on main content. On a best-effort basis, excludeSections drops content classified as header, navigation, banner, sidebar or footer. Contents costs $1 per 1,000 pages per content type (Exa pricing).

This request, from our Contents reference, returns the same Nieman Lab article with its metadata:

from exa_py import Exa exa = Exa() # reads EXA_API_KEY from the environment url = "https://www.niemanlab.org/2026/10/metas-new-commercial-terms-will-allow-the-scraping-of-news-sites-legal-experts-say/" result = exa.get_contents( [url], text={"verbosity": "compact", "exclude_sections": ["header", "navigation", "banner", "sidebar", "footer"]}, max_age_hours=0, # fetch fresh so the section filters apply ) page = result.results[0] print(page.title, "|", page.author, "|", page.published_date) print(page.text[:300])

Our reference says section filters and verbosity apply only to freshly fetched content, so the request sets max_age_hours=0. If you also need to find the articles, request page text with your Search API results. The base price includes up to 10 results; generated summaries cost extra.

Paywalls and blocked pages

None of the server-side tools here documents a way past a paywall on its own.

  • The Apify Actor's FAQ says it works only on public pages and can't bypass login walls, paywalls, or CAPTCHAs.

  • Diffbot can extract content behind logins with your own session cookies for a site you log in to.

  • Article Extractor Pro sees what your own subscription shows you.

  • Our crawler, ExaSearchBot, respects the Robots Exclusion Protocol, limits request rates per site, and doesn't try to bypass logins, paywalls, or CAPTCHAs (FAQ).

For paywalled articles at volume, ask the publisher about a content license or a news API. Check each site's terms before you extract from it.

Frequently asked questions

Use a tool that returns metadata. Trafilatura adds title, author, and date with --with-metadata. Exa Contents returns author when the page names one and an estimated publishedDate (Contents reference).

Not on its own. A browser extension such as Article Extractor Pro sees what your own subscription shows you. Diffbot can use your session cookies for a site you log in to. At volume, license the content from the publisher. See our crawler FAQ for how we crawl.

Roundup · Oct 2026

The 14 best web scraping tools in 2026

14 web scraping tools compared on price, free tier, JavaScript, anti-bot support and export format: AI-native, no-code, developer and enterprise options.

Roundup · Oct 2026

The 9 best AI web scraping tools in 2026 (and how AI scraping works)

How AI web scraping works, nine tools compared (Exa Contents, Browse AI, Thunderbit, Kadoa, ScrapeGraphAI, Crawl4AI, Firecrawl, llm-scraper, Stagehand), when to use selectors, an LLM or a hybrid, and how to manage AI crawlers such as GPTBot and ExaSearchBot on your site.

Comparison · Nov 2026

Data extraction APIs compared: documents and the live web

Nine data extraction APIs for web pages and documents, including Firecrawl, Mindee, Textract and Document AI, compared by input, OCR, output and price.

How-to · Oct 2026

How to scrape a website: 9 tools and methods compared

Nine ways to scrape a website: no-code tools, Python with requests, Beautiful Soup or Playwright, and extraction APIs, with pricing and JavaScript support.

How-to · Oct 2026

URL to text: 3 ways to turn a webpage into clean text or Markdown

Three ways to turn a URL into clean text or Markdown: online converters, the MarkDownload extension for pages behind a login, and code or APIs for bulk jobs.

Explainer · Oct 2026

What a web scraping API is and how to choose one

What a web scraping API does (rendering, proxies, rate limits, output formatting), when a library is enough, six criteria for choosing one, six providers compared including Exa Contents, and a first get_contents request with highlights.

Give your agent the world’s data