NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Web scraping questions

Short, practical answers for the everyday problems of collecting public web data with scripts, parsers and browsers.

Scraping problems rarely start with a CAPTCHA. They start with a selector that stopped matching, a page that loads its data after the first response, a JSON body that is nested one level deeper than expected, or a job that needs to run every hour without anybody watching it. The answers in this topic deal with those everyday parts of a scraper, using common libraries such as Requests, Beautiful Soup, Scrapy, Puppeteer and Playwright.

Where a challenge does appear, the answers point to the matching guide, but the focus here is the rest of the pipeline: extracting, cleaning, storing and scheduling. Collect public data only, respect the terms of the sites you visit, and keep personal data out of your datasets unless you have a lawful basis for it.

Questions in this topic

Web scraping questions (31)

Related reading

The blog has longer tutorials for scraping in Python, Node.js, Go, C#, Ruby and R, and the glossary defines the terms used in these answers.

Common questions

Do I need a browser for scraping?

Only when the data is rendered by scripts and no underlying JSON endpoint can be read directly. Plain HTTP requests are faster and cheaper when they work.

Which parser should I start with?

Beautiful Soup in Python or Cheerio in Node.js are easy starting points; switch to a framework such as Scrapy when you need queues, retries and pipelines.

How do I keep a scraper polite?

Limit concurrency per site, add delays, cache pages you already have and read robots.txt before crawling.

Where do CAPTCHAs fit in?

Treat a challenge as one more response type: detect it, solve it through the API, and retry the request with the answer.

Can I store scraped data as CSV?

Yes. Most answers here show how to flatten JSON into rows and write them with standard libraries.