Basics
- Web scraping
- Reading data from web pages automatically – prices, texts, listings – instead of copying it by hand.
- Crawler
- A program that follows links from page to page to discover and fetch a whole site or part of it. Search engines run crawlers; so can you. More: Crawler
- API
- An interface a service builds on purpose for programs. If a site has an official API for the data you need, it is usually the best way to get it. More: API
- Web scraping API
- A service you send a URL to; it fetches the page for you and returns HTML, Markdown or the fields you asked for, with JavaScript, retries and timeouts handled. More: Web scraping API
- Parsing
- Turning raw HTML into a structure a program can work with, so it can find headings, links, tables and values.
- CSS selector and XPath
- Short expressions that point at elements of a page, like h1 or .price. A scraper uses them to say which values it wants. More: CSS selector and XPath
- Structured data
- Data in fixed fields, for example JSON with name, price and stock – ready for a database or a spreadsheet, unlike free text. More: Structured data
Pages and crawlers
- JavaScript rendering
- Loading a page in a real browser so its scripts run. Many modern pages only show their content after this step. More: JavaScript rendering
- Headless browser
- A browser without a window, controlled by a program. It loads pages like a normal browser and is used for rendering, screenshots and clicks.
- Dynamic page
- A page whose content is loaded or built by JavaScript after the first response – the raw HTML alone is often almost empty.
- robots.txt
- A text file at the root of a site that tells crawlers which paths they may fetch. It controls crawling, not indexing, and it is a request, not a lock. More: robots.txt
- Sitemap
- A list of a site's addresses, usually as XML, that helps crawlers find all pages without following every link. More: Sitemap
- User agent
- The header in which a client names itself – a browser, a search engine crawler or your script.
Limits and errors
- Rate limit
- The maximum number of requests a server accepts from one client in a time window. Above it, it answers with 429.
- HTTP 429 Too Many Requests
- The server asks you to slow down. Wait as long as Retry-After says, then try again with fewer requests. More: HTTP 429 Too Many Requests
- HTTP 403 Forbidden
- The server understood the request and refuses it – often because of its protection, sometimes because the content is not public. More: HTTP 403 Forbidden
- HTTP 503 Service Unavailable
- The server is overloaded or in maintenance. Try again later, with a pause before each new attempt.
- Retry
- Sending a failed request again. Useful for temporary errors like 429, 503 or timeouts – with a pause before each new attempt.
- Exponential backoff
- A retry strategy that doubles the wait after each failure, often with a little randomness, so that a busy server gets room to recover.
Web data for AI
- Markdown for LLMs
- A light text format with headings, lists and links. Language models read a page as Markdown with far fewer tokens than as HTML. More: Markdown for LLMs
- Tokens
- The units in which language models count text – roughly four characters in English. Fewer tokens mean lower cost and more room in the prompt. More: Tokens
- RAG (retrieval-augmented generation)
- A language model answers with the help of documents fetched for the question – for example current web pages turned into Markdown.
- MCP (Model Context Protocol)
- An open standard through which AI assistants like Claude, ChatGPT or Cursor call tools – for example to fetch a web page themselves. More: MCP (Model Context Protocol)
- AI extraction
- A language model reads the page and fills the fields you describe, for example a JSON schema – without writing selectors. More: AI extraction
Last updated: