Skip to content

Netweir documentation

  • Getting started: install, fetch a page, write and run a spider.
  • Fetching pages: query strings, logins, redirects, timeouts and certificates.
  • Selecting: CSS, XPath and Beautiful Soup style queries; changing the page; elements like one you found; JMESPath over JSON; structured data, articles, Markdown and chunks for retrieval, prices, dates and the data in scripts.
  • XML, feeds and CSV: XML responses, namespaces, the limits on hostile XML, XMLFeedSpider and CSVFeedSpider.
  • Auto-extraction: products, listings, job postings and articles read without selectors, in the common item schema, with one wrong field pinned by a selector.
  • Fields a language model reads: netweir.llm.extract, for pages no auto-extraction type covers: describe the fields, and Claude reads them.
  • Item loaders: filling items as Scrapy’s loaders do, with input and output processors.
  • Trying a page: the page Netweir gets, on stdout, in your browser or at a Python prompt.
  • Projects: startproject, genspider, list, parse, check (Scrapy’s contracts) and version.
  • Forms, logins and APIs: POST and other methods, form submission, JSON APIs.
  • Sessions and cookies: a client’s cookies, storage state files, logging in with Chrome and crawling over HTTP, several users in one crawl.
  • Crawling: spiders, requests, pipelines, downloading files and images, middlewares, signals, watching a running crawl, exporters and the command line.
  • Declarative spiders: items and rules that run in Rust.
  • Self-healing: blocks, checkpoints, tracked selectors and repair proposals.
  • One crawl, many machines: processes on several machines sharing one queue in Redis.
  • Browser: drive Chrome for pages that need JavaScript.
  • Netweir for AI agents: netweir mcp, an MCP server that lets Claude, Cursor and other agents fetch pages and read them as Markdown, chunks or data.
  • Steps: clicks, typing, scrolling and waits a request does in Chrome before its callback, as data; coming from Zyte API, scrapy-playwright, Scrapling or Crawlee.
  • A page’s environment: viewport, screen, phones, language, time zone, location, permissions and the rest, the same everywhere a site looks.
  • Running spiders as a service: netweir serve, jobs scheduled, watched and cancelled over HTTP, as with scrapyd.
  • Settings: every setting and its default.

The designs behind it, for anyone working on Netweir: