AI Compass / Knowledge cards
Collecting web data
settle the access path first, then build
A scraper is a program that fetches web pages automatically and extracts data from them. Claude Code can build such a program in a short time today. The difficulty usually lies not in the code but in where the requests come from and whether they are allowed.
What it is for
Market and price research without an expensive subscription, without running into legal problems.
Steps
- Look for official routes first: APIs, RSS feeds or data exports from the target site.
- Read the site’s
robots.txt. In it, the website specifies what programs may fetch. Read the terms of use as well. - Fetch only public pages, slowly and with pauses between requests.
- Expect blocks: some sites block requests from data centers. In the measurement below, a scraper got through on only 33 of 100 pages that way.
- If a page is blocked, don’t circumvent the block. Use another route or skip the page.
- Don’t store personal data you don’t need.
What the example shows
Creator Magic had Claude Code build a scraper that respects robots.txt. From a data center it reached 33 of 100 pages. Via residential proxies, meaning detours through private internet connections, it was over 90%, at a total cost of around $2. That is a single measurement by the author on 100 pages, not verified and not easily repeatable.
Respecting robots.txt while circumventing blocks via proxies is contradictory. That is why this variant is not listed here as a step.
Alternatives
- Official APIs and feeds of the target sites
- the official Brave Search API for search results (also used in the video)
- Your own slow requests from your own connection
Links
- Decision models: collected third-party texts can contain injected instructions. According to Creator Magic, a model that only decides could serve as a pre-filter. That is not verified, and even such a model can decide wrongly because of injected text.
Sources
- Creator Magic: Claude Code Built A Web Scraper: No More $249 SaaS, 30 Sept 2026, chapters 02:02, 04:29, 10:25, 12:50, 16:22. Affiliate link to a proxy provider in the description
Status
Checked 2 Oct 2026 · Maturity new · not legal advice
Want to try this with your team? That’s what the AI Lab is for. See the AI Lab