How to extract links and write to a CSV

Learn how to scrape links from a webpage into a CSV saved to your downloads folder by combing a few steps using our builder.

Design pattern: Extract links to CSV

# Start from blank, adding the following steps


In the Axiom.ai Chrome extension dashboard, click "New Automation" and then select "Add first step". Use the step finder to add the steps outlined below.


Start with this link scraping step, setting the page and selecting the links you wish to scrape.

  1. URL - Enter the URL of the page from which to scrape links.
  2. Select - Choose the links you wish to scrape.
  3. Find pager (Optional) - Select the "Next" button for the pager, if there is one.
  4. Max results - Set a maximum number of results you wish to scrape.
Tip

💡 Set a low max result, for example, 10 and do a test run first.

# Add a "Export to CSV" step


Finally, we need a place to write the scraped data. We will pass the data in from the previous step to a CSV file.

  1. Export to CSV - Select the data to input into the CSV by clicking "Insert data", then choose "scraped-link-data".
  2. File name - Name your file.

# Wrapping up


Create an automation with just two steps that extract links from any website. In the first step, simply select the links, and then, in the second step, write the scraped data to a CSV.