Claude web scraping
Can Claude scrape websites? Yes. Here's how.
Yes. Claude can scrape almost any public website. The catch is which Claude you use. In the chat app it can read a page or two. In Claude Code it writes the scraper, runs it, fixes it when it breaks, and hands you a spreadsheet with thousands of rows.
I use it every week for market maps and prospect lists. The biggest one so far: every golf course in the US, 12,339 of them, with the booking software each one runs. Here's how it works, start to finish.
Which Claude to use
- Claude chat (claude.ai). Can read a page you link and pull facts out of it. Fine for one page. The wrong tool for a thousand.
- Claude Cowork. Works through sites with you from the desktop app. Good for a handful of pages you'd otherwise click through by hand.
- Claude Code. The one for lists. It runs on your computer, writes small Python scripts, runs them, and saves the output to files. You describe the list in plain English. You never have to touch the code.
Why Claude struggles with web scraping in chat
If you've asked Claude to scrape a site in the chat app and got a shrug, a half list, or an apology, that's normal. Four reasons:
- It reads pages one at a time, inside the conversation. A list of 500 companies doesn't fit.
- Plenty of sites block automated visitors, so the page comes back empty or as an error.
- Some pages build themselves with JavaScript after they load. A plain fetch sees a blank shell.
- It can't save a file and pick up where it left off tomorrow.
The fix is the same for all four. Move to Claude Code and have it write a script. The script does the loop, saves every row to a file, and retries what fails. Claude's job becomes writing and fixing the scraper, not being the scraper.
Scraping tools Claude can plug into
Claude Code connects to outside tools through MCPs (think plugins). Playwright gives it a real browser. Apify has ready-made scrapers for big sites. Bright Data and Firecrawl handle sites that block you.
Start without any of them. A plain request covers most sites. Add a tool only when a site fights back.
The seven techniques, cheapest first
Every scrape starts at the top of this list and only moves down when it has to.
1. Just ask for the page
Most websites hand over their content to a plain request. No browser, no tricks. This is the workhorse. It read thousands of golf course websites without a browser.
2. Use a real browser for pages that load late
Some sites build the page with JavaScript after it loads, so a plain request gets an empty shell. A headless browser (a real browser with no window) waits for the page to finish, then reads it.
3. Catch the data behind the page
A lot of sites load their data from a hidden API and then draw it on screen. Find that request and you skip the page entirely. You get clean, structured data, often thousands of rows at once.
4. Build a competitor's customer list
Software leaves footprints on its customers' websites. "Powered by" lines, widget links, backlinks to the vendor. Search for the footprint and you have a list of who uses it.
5. Find a website's hidden pages
Companies run pages that aren't linked from the homepage: portals, booking subdomains, staging sites. Public certificate logs like crt.sh list every subdomain a company has ever secured.
6. Get past sites that block you
Some sites block anything that looks automated. Pebble Beach's site blocked a plain headless browser. CloakBrowser got through. For the toughest sites, a proxy network like Bright Data is the last rung.
7. See what software any business runs
Read the fingerprints on each site and you know the CRM, the booking system, the platform. This is the step that turns a list into a market map. Full walkthrough: technographic data with Claude.
A real run: every golf course in the US
No list bought from anyone. Free public data and Claude Code.
The real numbers from the golf run. Every row came from public data.
The payoff wasn't the list. It was what the list showed. Private clubs almost all run one of three member platforms. Public courses mostly run tee-sheet software. One scraped field tells you how each course makes money, and what to pitch it. See the full golf market map.
How to start
- Install Claude Code and open an empty folder.
- Describe the list you want. Who, where, and what you want to know about each one.
- Ask Claude to find a free source first. OpenStreetMap, government datasets, and industry directories cover more than you'd think.
- Have it test on 20 rows, check them yourself, then run the rest.
Tell it to leave a cell blank when it isn't sure. Blank beats wrong.
Playing it straight
Stick to public pages. Keep your request rate modest so you never strain anyone's site. Don't log in to scrape, and don't keep personal data you don't need.
Where the list goes
Everything lands in a CSV. From there it goes into HubSpot, Salesforce, Google Sheets, or straight into a cold email tool like Instantly or Smartlead. Anything that takes a CSV. Weighing this against Clay? See Clay alternatives.
FAQ
Can Claude scrape websites?
Yes. Claude can scrape almost any public website. For more than a few pages, use Claude Code. It writes a scraper, runs it on your computer, and saves the results to a spreadsheet.
Can Claude Code scrape websites?
Yes, and it's the best way to do it with Claude. You describe the list in plain English. Claude Code writes the script, tests it on a few rows, then runs the rest. The golf run above read thousands of course websites this way.
Why does Claude struggle with web scraping?
In the chat app it reads one page at a time, gets blocked by some sites, and sees empty shells on pages built with JavaScript. Claude Code fixes this by writing a script that does the loop, uses a real browser when needed, and saves as it goes.
Do I need proxies to scrape with Claude?
Usually not. Most sites hand over their pages to a plain request. The golf run cost $0 in data. Proxies like Bright Data are the last resort for the few sites that block everything else.
Is scraping with Claude free?
Claude Code needs a paid Claude plan. The data can be free. OpenStreetMap, government datasets, and company websites cover a lot, and the golf run used nothing else.
Can Claude scrape LinkedIn?
I don't, and I wouldn't. LinkedIn data sits behind a login and its terms forbid scraping. Company websites, directories, and public datasets get you the same accounts without the risk.