How to Scrape Spotify Discography: Step-by-Step

This Spotify Discography Scraper operates by reading artist profile links from a Google Sheet, opening them in Chrome, and navigating to the discography section to scrape album links. It collects data such as album title, copyright, and release date, saving this information into another Google Sheet. After processing each entry, the bot deletes it from the initial sheet and continues to the next.

# Get started: Set up your Google Sheet

Create a new Google Sheet. You can do this in your Chrome browser by entering the shortcut 'sheet.new', assuming you already have an account. Name your sheet something like 'Spotify scraper’. Set up two tabs in Google Sheets: one for artist profile links and another for scraped data.

# Install the Spotify discography scraper

To install this Spotify Discography Scraper click 'Install template'. If you’re a new user, you’ll have to click 'Install Chrome extension' and create a free Axiom.ai account before you can edit the template.

Once installed, click 'Start'.

Axiom.ai will guide you through the steps you need to configure in the app.

# Configure your Spotify discography scraper in four easy steps

  • Step 1.0 - Read data from Google Sheet
    • Spreadsheet - Search for the Google Sheet you created. Once found, click to select
    • Sheet name - Choose the tab with the artist profile links
  • Step 2.0 - Loop through data
    • Step 2.1 - Go to page: Artist page
      • Enter URL - Click 'Insert data' select [google-sheet-data] then append '/discography/all' after the token.
    • Steps 2.2 and 2.3
      • Preconfigured
    • Step 2.4 - Loop through data: Album links
      • Steps 2.4.1 and 2.4.2
        • Preconfigured
      • Step 2.4.3 - Write data to a Google Sheet
        • Scraped data not writing to the Google Sheet - Check 'Data' is set to [scraped-data]
    • Step 2.5 - Delete rows from a Google Sheet
      • Spreadsheet - Search for the Google Sheet you created. Once found, click to select
      • Sheet name - Choose the tab with artist links

# Run your Spotify discography scraper

To test this Spotify scraper, initiate the bot with the cloud lo runner and let it run a few loops. Then, stop the bot and review the data in the linked Google Sheet for accuracy and completeness. If you wish to schedule the bot add steps to login.

# Customize your template

Like all Axiom templates, you can use our no-code bot builder to customize any bot according to your requirements. For example simply click 'Select' in Step 2.4.2 and point and click to chose different data to scrape.

# Tips

We recommend you watch the video to troubleshoot. If you wish to schedule the bot you will need to share the Cookie in settings or add steps to login.

  • Step 2.0 - Loop through data
    • Step 2.1 - Go to page: Artist page
      • Artist page not loading? The URL should resemble this - [google-sheet-data]/discography/all
    • Step 2.2 - Click Element:Grid layout
      • Display not being changed to grid format? Reselect the grid icon
    • Step 2.3 - Get a list of links to pages from bot's current page: Album links
      • Element not found? Reselect album links from an Artist discography page
    • Step 2.4 - Loop through data: Album links
      • Step 2.4.1 - Go to page: Album
        • Links not loading? Check Enter URL has data inserted - [link-data?*&0]
      • Step 2.4.2 - Get data from bot's current page: Scrape Album
        • No elements found - Reselect data from an album page
      • Step 2.4.3 - Write data to a Google Sheet
        • Spreadsheet - Search for the Google Sheet you created. Once found, click to select
        • Sheet name - Choose the Data tab
    • Step 2.5 - Delete rows from a Google Sheet
      • Bot scrapes same artist every loop? Check the sheet containing Artist links is selected

We offer excellent customer support. If you need help, get in touch.

# More Templates