News scraping
News scraping collects articles from publisher websites, Google News and press release wires: headline, byline, publish date, section and full body text. Zenrows fetches each article from protected and JavaScript-heavy news sites and returns clean Markdown or structured JSON, ready for search, NLP or aggregation.
Updated
{
"url": "https://www.example-news.com/business/2026/10/14/port-strike-ends",
"canonical_url": "https://www.example-news.com/business/2026/10/14/port-strike-ends",
"source": "example-news.com",
"headline": "Port workers end strike after nine-day standoff",
"subheadline": "Container backlog expected to clear by early November",
"authors": ["Staff reporter"],
"section": "Business",
"tags": ["shipping", "labour", "ports"],
"language": "en",
"published_at": "2026-10-14T06:42:00Z",
"modified_at": "2026-10-14T11:05:00Z",
"word_count": 812,
"image": "https://www.example-news.com/img/port-strike.jpg",
"body_markdown": "Dock workers at the city's two container terminals returned to work on Tuesday...",
"outbound_links": 7
}
What news scraping teams collect
One half finds new article URLs, the other turns each into a clean record.
Teams differ in sources and how far back they go.
| Job | Data you collect | Typical sources |
|---|---|---|
| Article datasets for NLP and search | Body, headline, byline, date, language | nytimes.com, theguardian.com, elpais.com, lefigaro.fr, ndtv.com |
| News aggregation products | Headline, summary, image, section, canonical URL | National, regional and trade press, techcrunch.com |
| Google News harvesting | Titles, outlets, times, links | |
| Press release archives | Company, title, date, text, media contacts | businesswire.com, accesswire.com, company newsrooms |
| Financial news for research | Headlines, tickers, minute timestamps, text | reuters.com, ft.com, businessinsider.com, forbes.com |
| Historical archive backfill | Every article in a date range | Publisher sitemaps, date archives, section pages |
Why news site scraping breaks
Publishers live on views and subscriptions, so large ones protect pages and wrap articles in scripts, ads and consent banners.
Text is often the smallest part of the HTML.
403s or challenges after a few hundred requests
Zenrows' stealth gets through Cloudflare, DataDome and similar
Headline present, article container empty
Adaptive Stealth Mode renders until the article appears
Newsletter prompts, "read more" links, ads in your corpus
Markdown output keeps the readable text; Extract splits the fields
One paper's selectors fail on the next fifty
Extract: same fields everywhere, no selectors
Different front pages and stories by country
Geotargeting fetches each country's edition
500,000 archive URLs take days in one script
Batch runs one job with per-URL results
How to scrape news articles with Zenrows
- Find the article URLs via news sitemap, RSS, or a Crawl filtered to article paths.
- Fetch each article with Adaptive Stealth Mode, escalating only when an outlet needs it.
- Choose the output: Extract for JSON fields, Markdown for an LLM or search index.
- Backfill and refresh in bulk with Batch; re-fetch recent articles once for corrections.
# pip install requests
import requests
params = {
"apikey": "YOUR_ZENROWS_API_KEY",
"url": "ARTICLE_URL", # one article page
"mode": "auto",
"extract": "auto",
}
response = requests.get("https://api.zenrows.com/v1/", params=params)
article = response.json()
print(article)# Collect article URLs (as Markdown pages) from one publisher section
curl -X POST "https://api.zenrows.com/v1/crawls" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "SECTION_URL",
"max_items": 1000,
"max_pages": 1000,
"include_patterns": ["/2026/"],
"exclude_patterns": ["/video/", "/live/"],
"output_format": "markdown"
}'npx -y @zenrows/cli init
# Turn one article into clean Markdown, or into article fields as JSON
zenrows fetch ARTICLE_URL --output markdown
zenrows extract ARTICLE_URL --autoparse
# Backfill an archive: archive.jsonl holds one {"url": "..."} per line
zenrows batch create archive.jsonl --output markdown --wait# Connect once
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp
# Then ask:
Use Zenrows to read the BBC News technology section, open the ten newest articles,
and return headline, author, publish time and the full body text of each as JSON.Which Zenrows product fits
- Pull one article or front page FetchThe rendered page from protected sites
- Get headline, byline, date and body as JSON ExtractArticle fields across outlets, no selectors to maintain
- List every section or archive article URL CrawlFollows links, keeps paths matching your patterns
- Backfill hundreds of thousands of archive URLs BatchOne job, results by webhook or download
- Test a source quickly from the terminal CLIAn article as Markdown in one command
What success looks like
| Measure | What good looks like | How to check it |
|---|---|---|
| Body completeness | The full body, not a teaser | Word counts against a hand-checked sample |
| Clean text | No navigation, ads or prompts in the body | Search for recurring boilerplate per source |
| Date accuracy | Times match the outlet, in one timezone | Spot-check per outlet; store UTC |
| Source coverage | Every outlet returns articles every run | Articles per source per day; alert on zero |
| Duplicate rate | One record per story, despite tracking parameters | Shared canonical URLs or body hashes |
| Backfill throughput | Archive jobs on time, failures retried once | Duration and failures per Batch job |
News scraping FAQ
-
Analysing public articles is common in research, media analysis and search. Copyright is the issue: headlines, snippets and links differ from republishing full text, which usually needs a licence. Respect terms and robots rules; check with your legal team before showing article text to users.
-
Fetch
news.google.com/search?q=your+topicwith Adaptive Stealth Mode for titles, outlets, times and links, or the RSS search feeds as XML. Then fetch each original for full text. -
Zenrows fetches what a public visitor sees, often the full article on soft-metered sites. Subscriber-only content needs a licence, a publisher feed or your subscription terms.
-
A news data API sells a fixed index. A scraper API like Zenrows fetches your pages, on your schedule, as Markdown or JSON: pick it for outlets, regions or fields an index lacks.
-
Read the news sitemap (last two days, with times) or RSS and fetch only new URLs. For company or keyword alerts, see news monitoring.
-
Canonical URL, outlet, headline, author, publish and update time, section, body; optionally image, tags, language, word count. Use UTC and key on the canonical URL so tracking links and AMP pages do not duplicate.
-
Yes. Fetch returns the outlet's language; Markdown keeps non-Latin scripts intact; geotargeting picks the edition's country.