Glossary
Web scraping: turning web pages into data
Web scraping is the automated collection of information from websites: a program requests pages, reads their content and saves the parts you need in a structured form.
Definition
A person can copy a price from a product page by hand. A scraper does the same thing thousands of times without getting tired: it fetches the page, finds the price in the markup, and writes it to a file or database along with the product name, the URL and the time. The term covers everything from a ten line script to a distributed system running across many machines.
How a scraper works
- Choose targets. A list of URLs, a sitemap, or links discovered by web crawling.
- Fetch. An HTTP client or a headless browser loads each page. Pages that build their content with scripts need JavaScript rendering.
- Parse. The HTML or JSON is turned into a tree you can query with selectors.
- Extract. Fields are picked out, cleaned and validated, a step called data extraction.
- Store and monitor. Records go to storage, and the job tracks failures, empty results and layout changes.
Common uses
- Price and stock monitoring across retailers.
- Search result and ranking tracking for SEO.
- Research datasets from public sources such as government notices or scientific listings.
- Lead lists from public business directories.
- Content aggregation for job boards, travel or real estate.
- QA checks that your own site shows the right content in every region.
Legal and ethical limits
Laws differ by country and change over time, so treat this as orientation rather than legal advice. A few principles hold broadly:
- Public versus private. Data anyone can view without logging in is on firmer ground than content behind an account. Accessing systems you are not authorized to use is a different matter entirely.
- Personal data. Names, emails and profiles fall under privacy laws such as the GDPR. Collecting them without a lawful basis is not acceptable.
- Copyright and terms. Facts like prices are generally treated differently from creative content. Terms of service may restrict automated access.
- Load. Hammering a small site can disrupt it for everyone. Pace requests and honor robots.txt where it applies.
The is web scraping legal article goes into more detail.
Where CAPTCHAs come in
Busy sites protect themselves with bot challenges, and a scraper that works on day one can start meeting reCAPTCHA v2 or Cloudflare Turnstile widgets as volume grows. A solving API lets the job continue: detect the widget, send its parameters as a task, poll for the answer, and submit it as the page expects. With GateSolver you pay only for solved tasks, the balance never expires, and one balance covers every supported type. Keep the purpose legitimate, as with any scraping: public data collection and monitoring, not account takeover or spam.
Common questions
Is web scraping the same as crawling?
No. Crawling discovers pages by following links, while scraping extracts data from pages. Many projects do both.
Do I need a browser to scrape?
Only for pages that build their content with JavaScript. Static HTML and JSON endpoints work with a plain HTTP client.
Is it legal to scrape public data?
It often is, but it depends on the country, the data and the site terms. Personal data and logged in content need extra care.
Why does my scraper start hitting CAPTCHAs?
Volume, IP reputation and client fingerprints raise risk scores over time, so sites begin to challenge your requests.
What does a solving API add to a scraper?
It turns a challenge into an answer your code can submit, so the job continues instead of stopping at the widget.
Keep reading
- Web crawlingWeb crawling discovers pages by following links outward from seed URLs, managed through a crawl frontier that decides what to fetch next.
- Data extractionData extraction turns raw HTML or JSON into clean, typed records with a fixed schema that downstream tools can trust.
- Is web scraping legal?General principles that shape whether a scraping project is lawful: public access, site terms, personal data, copyright and how you collect.
- Web scraping with Python: a working guideFrom the first request to a polite, restartable scraper in Python: sessions, parsing, pagination, retries and where CAPTCHAs fit in.