Skip to contentLurkAPI

Best web scraping tools in 2026, and where each breaks on social media

requests and BeautifulSoup for plain HTML, Playwright or Crawl4AI for JavaScript, Scrapy for crawls. For social media data, an API that returns the fields.

5 min read

Six scraping tools on a pegboard, each above a tray holding a different amount of green tiles; the last tray is amber and holds one neat block.
On this page6 sections

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.

What each tool handed back from six public pages. “Data” means the fields a visitor sees, like a TikTok caption and its likes, were in the output.

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.

Plain requests with a Chrome user agent: six public pages, six 200 OKs. TikTok and YouTube kept their numbers in a script tag, Instagram sent 587 KB with nothing in it, Reddit an 8.5 KB bot check. Only X and LinkedIn had the fields in the HTML.

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.

YouTube shows “1.8B views” as spinning digit reels, so a browser’s text reads every digit on every reel: 1 2 3 4 5 6 7 8 9 0, again and again, with the “.” and the “B” stranded between the runs. The video endpoint returns viewCountInt: 1,827,360,997.

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.

Nike’s Instagram followers three ways: 290M on the profile a browser sees, 291M in the link preview a plain request gets, and 290,969,576 from the profile endpoint. Every count between 290M and 291M looks the same on a page.

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.

Nike’s Instagram profile · 1 credit
curl "https://api.lurkapi.com\
/v1/instagram/profile\
?username=nike" \
  -H "x-api-key: $LURK_KEY"
The response, trimmed
200 OK
{"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.

ServiceYou get1,000 social pages
ScrapingBeeHTML$6.33
ZenRowsHTML$8.89
ScraperAPIHTML$14.70
FirecrawlMarkdown$24.90
ApifyJSONfrom $1.60
Bright DataJSON$1.50
LurkAPIJSON$0.93, or $0.59 in bulk
Entry plans. Every LurkAPI account starts with 100 free credits.

Questions

What is the best web scraping tool?

It depends on the job: requests and BeautifulSoup for plain HTML, Playwright or Crawl4AI for sites built in JavaScript, Scrapy for crawling whole sites, and an API with platform endpoints for social media data.

What are the best free web scraping tools?

requests, BeautifulSoup, curl_cffi, Scrapy, Playwright and Crawl4AI are free and open source. Jina Reader is free to call without a key at 20 requests a minute, or 500 with a free key. LurkAPI gives every new account 100 free credits, at 1 credit per social page.

Does Scrapy respect robots.txt?

Yes, in projects made with scrapy startproject: the template sets ROBOTSTXT_OBEY = True, though the library default is False. Reddit, X and LinkedIn disallow every crawler, so such a project skips them without sending a request.

Is web scraping legal?

It depends on what you collect and how: a site's terms, copyright and privacy law all come into it. Reddit, X and LinkedIn opt out of all crawling in robots.txt. This isn't legal advice; our post “Is web scraping legal?” covers the social media cases.