Home › Cybersecurity wiki › What is web scraping?

Wiki

What is web scraping?

Web scraping is the automated reading of content from web pages or interfaces.
A program requests the pages and takes selected parts into its own store.
Whether it is allowed, and what effect it has, depends on what is read and on the conditions under which the site permits it.

Understanding Web Scraping

Scraping replaces manual copying with a repeatable request.
It is not an attack by itself, but it can create load, break terms of use, or extract data that were not meant for reuse.
The operator of the source and the operator of the requests have different duties.

How Web Scraping Works

A scraper requests pages or interfaces, reads the response, and extracts the intended fields.
Repetition, pauses, and the handling of errors determine the load on the source.
Changes in the structure of the page break the extraction even when the visible content stays the same.

Uses of Web Scraping

Uses include price comparison, watching one’s own public pages, and collecting catalog data that are freely available.
The same means can also extract, at large scale, content the operator meant to show only to people.
Purpose does not decide alone.
Permission and load decide as well.

Web Scraping and Cybersecurity

For cybersecurity, scraping matters because mass requests slow services, empty forms, or probe paths that are not public.
The difference from an ordinary reader is volume, regularity, and the bypassing of limits.
Operators must be able to recognize automated clients without blocking ordinary users.

Preventing Web Scraping

Prevention limits requests per client, requires a traceable identity for sensitive paths, and rejects clients that deliberately bypass limits.
A robots notice is a hint to cooperative programs, not a defense against intentional ignoring.
Technical limits must be enforced on the server.

Legal and Ethical Aspects of Web Scraping

Legally, terms of use, copyright, and the protection of personal data matter when such data appear on the pages.
Ethics require keeping the load on the operator low and not bypassing access barriers.
What can be requested technically is not automatically released for reuse.

Web Scraping Tools and Libraries

Tools range from small libraries that parse a single page to frameworks that handle requesting, repetition, and storage.
The choice follows the volume and the stability of the source.
Every tool needs its own limit, or a test becomes a continuous crawl.

Beautiful Soup

Beautiful Soup parses downloaded HTML and makes individual elements addressable for a program.
It does not fetch the page itself and does not control repetition.
It suits modest extractions in which the fetching is limited somewhere else.

Scrapy

Scrapy is a framework that schedules requests, receives responses, and passes results onward.
It suits larger runs across many pages.
Limits on rate and target must be set in one’s own configuration, because the framework does not enforce them on its own.

Conclusion

Web scraping automates the taking of content and is bounded by purpose, permission, and load.
Operators enforce limits on the server, and requesters respect them.
A tool does not change those duties.