Web scraping
Web scraping is the automated extraction of data from websites, such as copying prices, profiles or articles into a database, and it is one of the main ways AI training data is gathered.
Scraping is what happens after a page is fetched. A crawler finds and downloads pages; a scraper reads them and pulls out the parts that matter, such as the price on a product page or the name and job title on a profile, and saves them in a database or spreadsheet. Techniques range from simple pattern matching on the text to parsing the page's HTML structure, driving a real browser with tools such as Selenium or Playwright, or reading pages visually.
Businesses scrape for price comparison, market research, lead generation and monitoring news. AI developers scrape at a far larger scale, because large language models are trained on text taken from the web. Some of that comes from public archives such as Common Crawl, which has collected web data since 2008; some comes from companies' own scrapers. By the mid-2020s scrapers run by AI companies had become a major source of web traffic.
The law is unsettled and varies by country. In the United States, the long-running case of hiQ Labs v. LinkedIn tested whether scraping public profiles breaks the Computer Fraud and Abuse Act. The Ninth Circuit said in 2019 that it likely did not; the Supreme Court sent the case back in 2021 in light of Van Buren v. United States, which narrowed that law; and the Ninth Circuit reached the same conclusion again in 2022. Other claims, such as breach of a site's terms of use, trespass or copyright infringement, can still apply. In Europe, France's data protection authority said in April 2020 that publicly available personal data is still personal data and cannot be reused without the person's knowledge.
For AI, the hardest questions are about copyright and consent: whether copying web content to train a model is permitted, and whether site owners can say no. Many publishers now block AI scrapers in robots.txt, and in July 2025 Cloudflare announced it would block AI crawlers by default unless they pay. The practical position for anyone scraping is that technical ability to read a page is not the same as permission to reuse what is on it.
It depends on the country, the data and how it is done. In the US, the appeals court in hiQ Labs v. LinkedIn found that scraping publicly accessible pages likely did not violate the Computer Fraud and Abuse Act, but scrapers can still face claims under contract, copyright or privacy law. In Europe, data protection rules apply to personal data even when it is public. Crawling is discovering and downloading pages by following links. Scraping is extracting specific data from those pages. A scraping project usually includes a crawl, but a crawler built for a search index does not need to extract particular fields. Yes. Large language models are trained largely on web text gathered by crawling and scraping, either by the companies' own bots or through public archives such as Common Crawl. Many AI companies publish the names of their crawlers so sites can opt out using robots.txt. Robots.txt rules ask compliant bots to stay away, and terms of use can forbid scraping. For bots that ignore those, sites use rate limits, bot detection and network-level blocking from hosting or security providers. No method stops every determined scraper.Common questions
Is web scraping legal?
What is the difference between web scraping and web crawling?
Do AI companies scrape the web for training data?
How can a website stop scraping?
Search for "hiQ v LinkedIn", "web scraping law" or "AI training data scraping copyright". Reliable sources include court opinions and legal analysis from law firms and universities, guidance from data protection regulators, and the crawler documentation published by AI companies. Rules differ sharply between countries, so check which jurisdiction a source is describing.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.