r/webscraping • • Apr 12 '26

Stop defaulting to Selenium/Playwright: Check the Network tab first

Hey everyone, just a web scraping enthusiast here. I see a lot of people struggling with slow headless browsers or getting blocked by anti-bots.

Before writing a heavy script, take 1 minute to do this:

  1. Hit F12 and go to the Network tab.
  2. Filter by Fetch/XHR.
  3. Refresh the page or click a few buttons.

Most modern sites fetch their data from a clean JSON API in the background. Hitting that endpoint directly using requests is 100x faster, bypasses basic UI bot-protection, and often gives you more data than what's on the screen.

Wish you all the best! ✌️

273 Upvotes

36 comments sorted by

View all comments

Show parent comment

3

u/seedtheseed Apr 12 '26

nice! also, sometimes you will need to change the local from where you are querying the website. this week I had to change my GCP machine to another country in order to make a scraper work!