Skip to content

Web Scraping

Automatic data collection from web pages: a script downloads HTML and extracts the necessary information — text, links, prices, features.

How It Works

  1. Request to the page (usually with a browser User-Agent).
  2. Parsing HTML — using BeautifulSoup, regex, or XPath.
  3. 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.

See Also

← All Terms