9 min read
What is web scraping, and how does AI change it?
A scraper can collect prices, specifications and text from websites in minutes. AI can also extract fields by interpreting their meaning. Here is how both approaches work, where they can go wrong and what limits apply to data collection.

Web scraping automatically collects data from web pages and gives it a structure, such as a spreadsheet, CSV file, JSON file or database. A scraper opens a page, finds items such as names, prices and specifications, and saves them in separate fields. AI adds another way to extract information by recognising what it means. The legality of collection depends on the data and how you obtain it, whatever tool you use.
What is web scraping?
A scraper extracts the information you need from an unstructured source, usually an HTML page, and assigns it to fields. You can save the result in Excel, CSV or JSON, or write it directly to a database.
A browser presents the page as images, buttons and sections. A scraper reads the same HTML as a tree of elements and takes the values it needs. On a product page these might be the name, price, availability and product code. A hundred pages that might take a day to copy manually can become a table in minutes.
What do “scrape” and “parse” mean?
To scrape a site is to collect its data programmatically. A scrape can be a single run that produces a finished dataset. In Russian the everyday term for this comes from the English verb “parse”, meaning to analyse something by breaking it into parts.
In everyday conversation, someone asking to scrape a site usually wants an automatic export. Programmers use “parse” more broadly. A program can parse a file, a response from an application programming interface (API) or a string of text into its component parts.
Why scrape websites and what can you collect?
Scraping makes sense when there is too much data to collect by hand or when it needs regular updates. Common uses include monitoring prices and ranges, populating catalogues, SEO analysis and market research. A shop might update product codes, prices and photos from a supplier catalogue where the supplier has authorised collection and publication of those specific materials.
- Text. Titles, descriptions, articles and reviews.
- Product data. Prices, specifications, availability and images.
- SEO data. Meta tags, H1–H6 headings, links, server response codes and Schema.org markup.
- Tables and directories. Timetables, registers and price lists.
- Search results. Pages that rank for particular queries.
People's contact details, including names, phone numbers and email addresses, form a separate category. Personal data is subject to specific rules, discussed below.
How a scraper turns a request into a table
A scraper requests a page, receives its code, locates elements according to rules and saves their values. If scripts generate the content, a headless browser can render it first.
- Obtain a list of addresses from a sitemap, catalogue or search.
- Load each page as HTML or as rendered by a browser.
- Identify the element containing the value using a CSS selector or XPath expression. For example, read the text of an element with the class “price”.
- Clean the values. Remove spaces and currency symbols where appropriate and standardise date formats.
- Save the result and repeat for the next page.
Options include ready-made SEO audit programs, general tools with visual configuration, browser extensions and custom scripts. A script can fit the task precisely, but writing it takes coding skills and a layout change may require manual repairs.
What AI changes about web scraping

In AI-assisted scraping, a language model identifies the required information by meaning. This helps with sites that structure information differently, though the model can make mistakes.
Usually a separate tool fetches the page, converts it to plain text or Markdown (text with simple formatting), and sends it to the model with descriptions of the fields. The model returns structured data, for example {"name": "Grey upholstered armchair", "price": 24900, "in_stock": true}.
| Criterion | Rule-based scraping | AI-assisted scraping |
|---|---|---|
| How it finds data | Selectors and XPath | Meaning of the text and field descriptions |
| Predictability | High. The same input gives the same output. | Lower. Fields may be missed or values invented. |
| Layout changes | Can break extraction rules | Often handled without changes |
| Speed and cost | Fast and inexpensive at scale | Slower, with a model request for each page |
| Best use | Bulk collection of consistent fields | Varied sources, text and documents |
A hybrid often works best. Use a conventional scraper for bulk collection and standard fields. Let the model extract harder details such as specifications embedded in prose.
How accurate is AI extraction?
A model can omit a field, take a price from the “Related products” section or fill an empty field with a plausible invention. Valid JSON can still contain inaccurate data. Check that required fields are present, types are correct, prices are in range and records are unique. Manually compare a sample with the source pages. Success on ten pages does not establish accuracy across ten thousand.
AI agents and scraping tools
An AI scraping agent can carry out a sequence of browser actions: open a catalogue, visit product pages, move through results and extract data. This can help with multi-step tasks, but an agent is slower, more expensive and less predictable than a script, and needs supervision. Our page on AI agent development explains how such systems are designed for business tasks.
Tools include the open-source libraries Crawl4AI and ScrapeGraphAI for fetching pages and extracting data with large language models (LLMs), Browser Use for agent-driven browser control, Firecrawl for converting websites into model-ready data, and Browse AI for no-code collection. Features and pricing change quickly, so test tools on your own pages before choosing one. Scheduled scraping typically combines a collection tool, a model for difficult fields, validation and an export to a spreadsheet or customer relationship management system (CRM).
Is web scraping legal?
In Russia, scraping public data is not prohibited in itself. The law restricts collection of personal data, extraction of substantial parts of third-party databases and use of protected content. What you collect and how you use it matter. The following points give general guidance.
Personal data
Individuals' names, phone numbers and email addresses are personal data. Being publicly visible on a site does not grant unrestricted processing rights. Under Article 10.1 of Russia's Personal Data Law No. 152-FZ, if someone publishes their own contact details without separately consenting to their dissemination, anyone who subsequently collects or shares them must establish that their actions are lawful. Identify the legal basis before collecting contacts. Silence or inaction does not amount to consent. See our article on personal data on websites.
Databases and copyright
Article 1334 of the Russian Civil Code gives the maker of a database that required substantial investment the exclusive right to extract and reuse its material. If the whole database contains at least 10,000 independent items, substantial investment is presumed unless shown otherwise. That figure does not set a number of records you may copy. A shop checking one supplier price needs one value. Importing the entire catalogue every night copies the whole database. Before the first export, agree with the supplier which fields you may collect, how often and what you may republish. Check publication rights for descriptions and photos separately.
Robots.txt and site terms
Robots.txt sets rules for crawlers. RFC 9309 explicitly says these rules do not authorise access. Ignoring the file is not necessarily unlawful in itself, but the owner can block the scraper, and site terms may separately prohibit automated collection. Breaching terms, bypassing safeguards and placing excessive load on a server all carry risks worth discussing with a lawyer before launch.
Practical rules for considerate scraping
Collect only the data you need and have permission to use, with minimal load on the source server. Look for an official way to get the data before writing a scraper.
- Ask the supplier about direct access through an API, downloadable price list or partner feed, a regularly updated file of products and prices.
- Follow robots.txt and the site's terms of use.
- Limit request frequency and schedule collection outside the source's working hours.
- Put the scraper's name and a contact for the person responsible in the User-Agent request header so the site owner can get in touch.
- Establish a legal basis before collecting personal data.
- Publish third-party text or images only if you have the rights to do so.
- Respect login requirements, CAPTCHAs and other technical restrictions.
When collection and processing are recurring tasks, as in price monitoring or catalogue updates, they can form part of wider business process automation with AI.
Sources
Questions and answers
What is web scraping used for?
It automatically collects data from web pages into a table or database. Uses include price monitoring, catalogue updates, SEO analysis and market research.
Is web scraping legal?
In Russia, collecting public, anonymised data is generally permissible, but the law protects personal data, substantial portions of third-party databases and copyrighted text. Check the site's terms and consult a lawyer if in doubt.
Can ChatGPT scrape a website on its own?
It depends on the environment. An assistant with a browser or search tool can open individual pages and extract data. Regular collection across thousands of pages needs separate tools, with the model processing content after retrieval.
Can I use AI for scraping free of charge?
Open-source libraries and local models are available. They still need configuration and a server or capable computer, and computing costs arise at scale.
How can I avoid being blocked when scraping?
Follow robots.txt and the site's terms, limit request frequency and use an official API where possible. Bypassing site protections increases legal risk.
Which format should I use for scraped data?
CSV, Excel, JSON or a database are common choices. Use the same field structure for every record.
Follow the journal
New pieces on websites, SEO and AI come out in the QIO journal. Follow in Google, by RSS or in Telegram to get them first.


