Scrape links from a website into a CSV file


How to scrape links from a website into a CSV file: install the Chrome extension, click Build with Browser agent, 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 links from a website into a CSV, point the Get a list of links to pages from a URL step at the page, select one link, and hand the list to Export to CSV, which saves it to your downloads folder. Two steps, no sheet needed.

Author
Alex Barlow
Published

Describe it and click the button: the agent builds and tests the link scraper in your Chrome extension.

  1. Go to the listing page I give you
  2. Scrape every product link on it
  3. Do every page of results
  4. Save the links as a CSV file
Click to launch the Chrome extension. Not installed? You can create an account and try it free.Opens the Chrome extension. Free account to try.

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 Get a list of links to pages from a URL
    • URL: the listing page
    • Select: one product link
    • Find pager: the Next button
    • Max results: the most links you want
  • 2.0 Export to CSV
    • Export to CSV: [scraped-link-data]
    • File name: the name of your CSV file

Reselect them. In Get a list of links to pages from a URL, pick a different example link, or paste a custom CSS selector. When a run fails, hand it to the agent and it repairs the step.

The downloads folder of the browser that ran the automation: your Chrome, for desktop runs. Set Folder on the Export to CSV step to choose another. Cloud runs attach the file to the run report.

Yes, when Find pager on Get a list of links to pages from a URL points at the page's Next button. It keeps turning pages until it has Max results links or runs out of pages.

Yes. The whole automation is two no-code steps in the Chrome extension: one that collects the links, one that saves the CSV.

Yes. Save the automation and set a schedule if the page changes often; each run saves a fresh CSV of the links.

Yes. Add a loop after the first step: scrape every page in a list of links shows the pattern.

Yes. Swap Export to CSV for Write data to a Google Sheet: scrape links from a website into a Google Sheet walks through it.

Where do I get help?

Get in touch with support, or ask in the axiom.ai community.

Related guides