Scrape any website with ChatGPT into a Google Sheet
How to scrape any website with ChatGPT into a Google Sheet: install the Chrome extension, click Build from description, tell the agent what you want, and follow its prompts. A working bot is built and tested in minutes.
Here is how the automation works. To scrape a website with ChatGPT, loop through the links in a Google Sheet, grab each page's content with Get data from bot's current page, and pass it to an Integrate AI step with a prompt naming the values you want, such as name, email and job title. ChatGPT reads the page and returns them, and Write data to a Google Sheet files them. It suits pages whose layout varies, where a fixed selector would break.
Build the ChatGPT scraper from a description
Describe it and click the button: the agent builds and tests the scraper in your Chrome extension. You need a ChatGPT API key from your OpenAI account; the agent asks for it.
- Open each link in the Links tab of my sheet
- Use ChatGPT to find the name, email and job title
- Add them to the Data tab
- Delete the link row once it is done
You need a Google Sheet with two tabs: Links, one page URL per row in column A with no header, and Data, empty. Leave both tabs as they are while the run writes the values and deletes the links it has done.
The video shows the agent building the ChatGPT scraper from the four lines above, in a few minutes.
Build the ChatGPT scraper step by step
The steps the agent builds, as the Builder shows them: each step by its name, with the fields to set under it. Add them yourself in this order in the step-by-step builder, or open the agent's result there to adjust it.
- 1.0
Read data from a Google SheetSpreadsheet: your sheetSheet name: Links, the tab with one page link per row
- 2.0
Loop through data- repeats for every row in
[google-sheet-data]
- 2.1
Go to pageURL: the link column of[google-sheet-data]
- 2.2
Get data from bot's current pageSelect: the one block that holds the page's content, or the custom selectorbodyfor the whole pageMax results: 1
- 2.3
Integrate AIAPI key: your keyPrompt:[scrape-data]followed by From this text, give me the name, email and job title, as three comma-separated values.
- 2.4
Write data to a Google SheetSpreadsheet: your sheetSheet name: DataDATA:[ai-output]Write options: Add to existing data
- 2.5
Delete rows from a Google SheetSpreadsheet: your sheetSheet name: LinksFirst row: 1Last row: 1
- repeats for every row in
Common questions about scraping with ChatGPT
How do I scrape only some of the links in the sheet?
In Read data from a Google Sheet, set Last cell. A50 reads the first fifty links.
Why does ChatGPT return the wrong values, or prose instead of values?
The prompt is too loose. Tighten it: name each value, say the order, and ask for comma-separated values with nothing else. If the content block is too small, reselect a larger one in Get data from bot's current page, or use body.
How do I make the ChatGPT scraper faster?
Open Configure scraper on the scrape step and set No. of retries to 1. Keep Max results at 1.
Why does nothing reach ChatGPT?
The page's content is not in the prompt. Check the Integrate AI prompt contains [scrape-data] and that Get data from bot's current page found a block on the page. When a run fails, hand it to the agent and it repairs the step.
Can I use Claude instead of ChatGPT?
Yes. Integrate AI takes either a ChatGPT or a Claude API key.
Do I need ChatGPT to scrape a website?
Not for pages with a fixed layout. Scrape Amazon product data uses selectors alone, which is faster and costs no tokens. ChatGPT earns its place on pages that differ from one to the next.
Can I scrape a website with ChatGPT without code?
Yes. No step in the ChatGPT scraper holds code: the prompt is plain English, and the one setting that is not a default is Max results at 1. Describe the scraper and the agent builds it.
Can I run the ChatGPT scraper on a schedule?
Yes. Save the automation and set a schedule. Each run works through the links left in the Links tab and deletes each one as it is done, so links added between runs are picked up by the next one.
Where do I get help?
Get in touch with support, or ask in the axiom.ai community.
Related guides
Extract data from HTML with AI into a Google Sheet
- Open each URL in column A of my sheet
- Ask me which data the AI should extract
- Put the results in that URL's row from column B
Proofread a website with AI and log typos to a Google Sheet
- Open each page link in the Links tab of my sheet
- Scrape the main text of the page
- Ask AI for spelling and grammar mistakes
- Add the URL and the mistakes to the Data tab
- Delete the link row once it is checked
Scrape Helium10 Magnet keywords into a Google Sheet
- Read the search terms from my sheet
- Search each one in Helium10 Magnet
- Scrape each keyword phrase and its CPR
- Add them to the data tab of my sheet
- Delete the search term once it is done
Triage Jira tickets with AI and close the spam
- Get every ticket link from my Jira support queue
- Open each ticket and read its description
- Ask AI whether it is spam or valid
- Log the spam tickets and the date to my Closed tab