Pick the tool by the job:
- One page of plain HTML: requests and BeautifulSoup, or curl_cffi when the site checks how you connect.
- A site that builds itself in JavaScript: Playwright, or Crawl4AI if you want markdown back.
- A whole site that allows crawling: Scrapy.
- Social media numbers, like a video’s views or a profile’s followers: an API with an endpoint per platform, which hands you the fields instead of the page.
On social pages, every free tool fails somewhere. Here’s what each one got from the same six public pages. None read all six.
- data: the fields, in the output
- JSON: the fields, as named JSON
- in a script tag: in the HTML, inside a JSON blob you dig out
- part: some fields, like a caption without its likes
- empty page: a 200 with nothing in it
- blocked: a 403, a block page or a bot check
- robots.txt: Scrapy declined before sending
A 200 OK doesn’t mean you got the page
Social sites rarely refuse you outright. Plain requests, posing as Chrome, got a 200 from all six pages, and only X and LinkedIn put the post or the company in the HTML. Reddit sent a bot check, Instagram an app shell with none of the profile in it, and TikTok and YouTube hid their numbers in a JSON blob inside a script tag, in a layout the site can change any day.
So check for the field you came for, never the status code. A scraper that stops at r.ok will store a thousand empty pages without complaint.

Swapping the user agent helps on one site and hurts on the next. Instagram gave the request posing as Chrome nothing, and gave the same request with Python’s own user agent a link-preview line of rounded counts. LinkedIn did the opposite: the Chrome user agent got the full company page, Python’s got status 999, its refusal code. A borrowed user agent works only when the rest of the connection looks like that browser too.
curl_cffi is the smallest fix: the requests API with Chrome’s TLS handshake. Instagram answered it with the full profile JSON, though Reddit still sent a “Prove your humanity” page. The longer story is in 403 Forbidden in Python requests.
Browsers get further, until they say they’re headless
A headless browser runs the page’s JavaScript, so it sees what a visitor sees, sign-up popups included, and the data under a popup is still in the page. Stock Playwright writes HeadlessChrome into its user agent, and Reddit, X and LinkedIn turned it away. Crawl4AI drives Chromium too, but with a plain Chrome user agent and the automation flag switched off, and read four of the six, the most of any free tool.
Where Crawl4AI slipped was the markdown. From TikTok it kept the caption and none of the counts; from YouTube, the title and no views. YouTube draws its view count as spinning digit reels, so the text a browser hands back there reads 1 2 3 4 5 6 7 8 9 0, over and over.

Jina Reader is the no-install option: send a URL, get markdown back. Called without a key, it refused four of the six sites.
Scrapy crawls whole sites, where robots.txt allows it
Scrapy is the crawler of the group: it follows links across a site with scheduling, retries, throttling and export built in. A project made with scrapy startproject also obeys robots.txt, and Reddit, X and LinkedIn tell every crawler Disallow: /. Instagram’s file turned Scrapy away as well, so it dropped four of the six pages without sending a request. Point it at sites that welcome crawlers; Is web scraping legal? covers the social media cases.
For social data, ask for the fields, not the page
Even when a page loads, its numbers are rounded for people to read. Nike’s Instagram profile shows 290M followers in a browser, and the link preview a plain request gets says 291M. The profile data says 290,969,576. A label like 290M covers a million-wide range: Nike could lose 900,000 followers and the profile would still say 290M. YouTube shows 19M likes for 19,489,065, and X shows 766.3K views for 766,328. If you track growth, those are the changes a scraped label can’t show you.

A platform endpoint skips the page. You send a username or a URL and get the fields back as named JSON, with the exact counts. That’s what LurkAPI does, for TikTok, Instagram, Reddit, YouTube, X, LinkedIn and more. All six pages in the grid came back this way, for 1 credit a call.
curl "https://api.lurkapi.com\
/v1/instagram/profile\
?username=nike" \
-H "x-api-key: $LURK_KEY"The response, trimmed
{"success": true,"credits_charged": 1,"data": {"username": "nike","full_name": "Nike","biography": "Just Do It.","is_private": false,"is_verified": true,"follower_count": 290969576,"following_count": 266,"external_url": "http://empli.fi/nike"}}To try it before writing code, the free Instagram lookup runs the same profile endpoint with no key. Private accounts show nothing to logged-out visitors, so they stay out of reach for every tool here.
On paid APIs, count the credits, not the plan price
Paid scraping APIs come in two kinds. Unblockers like ScrapingBee, ScraperAPI and ZenRows run the browsers and proxies for you and return the page’s HTML, which you still parse. They sell credits, and a social page takes many: ScrapingBee’s $19 for 75,000 credits reads like 25 cents per 1,000 pages, but with the premium proxies it advises for social networks a page costs 25 credits, so 1,000 pages cost $6.33. Data APIs return the fields.
| Service | You get | 1,000 social pages |
|---|---|---|
| ScrapingBee | HTML | $6.33 |
| ZenRows | HTML | $8.89 |
| ScraperAPI | HTML | $14.70 |
| Firecrawl | Markdown | $24.90 |
| Apify | JSON | from $1.60 |
| Bright Data | JSON | $1.50 |
| LurkAPI | JSON | $0.93, or $0.59 in bulk |