Web Scraping
Automatic data collection from web pages: a script downloads HTML and extracts the necessary information — text, links, prices, features.
How It Works
- Request to the page (usually with a browser User-Agent).
- Parsing HTML — using BeautifulSoup, regex, or XPath.
- Extracting data and saving.
Typical Tasks
- Inventorying a catalog before mass processing;
- Collecting prices and features;
- Checking that necessary blocks appear after publication.
Nuances
- The server may block by User-Agent or through WAF;
- Minified HTML can be one giant string — then parsing is done by position and regular expressions rather than line by line;
- For a list of pages, it's easier to use sitemap than to manually navigate the site.