IT Glossary
What is web scraping?
Web scraping is the automated extraction of data from websites: a program downloads the pages, finds the information it needs and saves it as a table or data feed.
- 7
- sections
- 6
- questions answered
Web scraping (from the English “to scrape”; in Romanian “extragere de date de pe web”) is the automated extraction of data from a site’s pages by a program that downloads the HTML, finds the information it needs, for example prices, stock or listings, and saves it in a structured form such as a table, CSV file or JSON. A crawler follows links across sites to discover pages (as Googlebot does); a scraper extracts specific fields from chosen pages, and many scrapers use a small crawler only to find those pages. robots.txt became a standard only in September 2022 (RFC 9309), and that standard says explicitly that its rules “are not a form of access authorization”: what is legally allowed is decided by copyright in the content, database law, the site’s terms and GDPR (details below).
The architecture rule for a company: where an official API exists, the API wins, because it is stable and contractually clear; scraping is for the rest of the web. It is fragile by nature: when the target site changes structure, the program stops finding the fields, so a serious implementation has monitoring with failure alerts and planned maintenance. Your own site is read by scrapers too, from competitors, aggregators and AI robots: whatever you publish is effectively public for machines.
Why it matters for your business
The market, monitored continuously
Competitor prices, relevant listings and supplier stock — read automatically, daily, with alerts on changes; eyes on the market without hours of browsing.
Data where no API exists
Public information without an official interface still becomes a structured feed — the pragmatic bridge to sources that never modernized.
Pricing decisions on fresh information
Competitor repositionings are visible the day they happen, not in a quarterly report — your pricing can respond to reality, not to memories.
How web scraping works
A scraper does four things in order. It sends an HTTP request to the page and receives the HTML. It parses the HTML (the DOM tree) and picks the wanted elements with CSS selectors or XPath. It extracts and cleans the fields (price, name, stock). It saves the result to CSV, JSON or a database and runs on a schedule, for example daily, through cron.
Sites that load their data with JavaScript need a headless browser, which runs the page like an ordinary browser. A serious implementation has failure alerts: when the target site changes structure, the scraper stops finding the fields and, without an alert, produces frozen or empty data.
Tools and types of scraping
Own scripts: Python with the requests and Beautiful Soup libraries, or the Scrapy framework for large volumes. Automated browsers (Playwright, Puppeteer, Selenium) for pages built from JavaScript. Browser extensions and no-code tools (for example Web Scraper or Octoparse) for small volumes. Scraping APIs and cloud services, which handle browsers and blocking. Ready-collected data services, when you do not want to run anything.
The rule: an official API or data export first, then scraping.
Want an estimate for your project?
Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.
What companies use web scraping for
Monitoring competitor prices: the rival catalog is read daily, with alerts on changes. Aggregating market information: listings, public tenders, stock at suppliers without an API. Watching your own presence: your prices at resellers, reviews, mentions. Feeding data where an API is missing.
For price monitoring, ready-made SaaS services exist; evaluate them first, because their subscription often beats the total cost of a solution of your own.
What EU law says about web scraping
Databases (Directive 96/9/EC). Art. 7(1): the maker of a database whose obtaining, verification or presentation of contents “attests a substantial investment” can prohibit extraction and re-utilization of the whole or a substantial part of the contents. Art. 7(5): even the “repeated and systematic” extraction of insubstantial parts is not allowed when it conflicts with normal exploitation. Protection lasts 15 years (art. 10(1)). Consequence: a price is a public fact, but a whole collection of prices copied daily can touch the maker’s sui generis right.
The site’s terms (CJEU, C-30/14, Ryanair v PR Aviation, 15.01.2015). When a database is protected neither by copyright nor by the sui generis right, the directive does not stop its creator from imposing “contractual limitations” on third parties’ use of it. Consequence: a site’s terms matter exactly where database law does not reach.
Copyright (Directive 2001/29/EC). Facts (prices, specifications) are not protected, but texts, photographs and creative descriptions are; extracting them for republication requires the rightholder’s consent.
Text and data mining (Directive (EU) 2019/790, art. 4). The exception allows reproductions and extractions of lawfully accessible content for text and data mining, meaning an automated analytical technique for patterns, trends and correlations (art. 2(2)); it expressly covers art. 7(1) of Directive 96/9/EC as well. Copies may be kept only as long as necessary (art. 4(2)). The exception falls away if the rightholder has expressly reserved their rights “in an appropriate manner, such as machine-readable means” for content made publicly available online (art. 4(3)); recital 18 adds that for online content the reservation is made by such means, including metadata and the site’s terms and conditions.
Robots.txt (RFC 9309, September 2022). It tells crawlers what not to access, but it is not a form of access authorization. In the EU, a Disallow in robots.txt is an obvious candidate for a reservation by machine-readable means under art. 4(3), so ignoring it moves the risk from the technical plane to the legal one.
Personal data (GDPR). Personal data stays personal data when it is public; details are in the contacts question below.
This page explains the rules and is not legal advice; for high stakes, ask a lawyer.
How websites defend against scraping
The usual methods: robots.txt (a convention, not a technical block), rate limiting, CAPTCHA, IP blocking and browser fingerprinting. Scrapers answer by rotating addresses through proxies.
For your own company, the mirror view: the express reservation in art. 4(3) is made by machine-readable means, including metadata and the site’s terms (recital 18); robots.txt complements it. What you publish is read by competitors, aggregators and AI robots (for example GPTBot), and robots.txt is where you state your rules.
Frequently asked questions
Is it legal to monitor competitors’ prices automatically?
Generally yes, with limits: a price is a public fact, but the whole collection can be protected by the database sui generis right (Directive 96/9/EC, art. 7), and a site’s terms can forbid extraction (CJEU, C-30/14). Prudent practice: a reasonable pace, no fake accounts, no personal data.
Can we automatically collect contacts from websites and LinkedIn for sales?
Not without a legal basis: names, emails and profiles are personal data, and GDPR applies even when they are public; whoever collects them from a source other than the person must inform that person (art. 14). Alternatives: public registers, generic company addresses such as office@, B2B data providers that take on compliance.
How long does a scraping solution last and what upkeep does it need?
It lasts until the target site changes its structure. Plan for monitoring with failure alerts and recurring maintenance, otherwise decisions get made on frozen data without anyone knowing. Evaluate a SaaS monitoring service or a paid API first, which often costs less than a solution of your own.
What is the difference between web scraping and web crawling?
Crawling discovers and walks through pages by following links, as search engines do. Scraping extracts specific data from chosen pages. A scraping project often has a small crawler in front, which only finds the pages the data is extracted from.
Is respecting robots.txt mandatory?
Technically no: RFC 9309 says its rules are not access authorization. Legally, in the EU it matters: a Disallow can be an express reservation, by machine-readable means, by which the rightholder excludes text and data mining (Directive 2019/790, art. 4(3)). Prudent practice is to respect it.
Which language and tools are used for web scraping?
Most often Python (requests, Beautiful Soup, Scrapy) and JavaScript with Node (Playwright, Puppeteer) for dynamic pages. For small volumes, no-code browser extensions work; for large volumes, cloud scraping services.
Let’s talk about your project
Book a free 30-minute call or send us an email. We reply the same working day.
office@northdan.com · +40 750 252 851