How to scrape users from likes on Instagram posts

This Instagram bot scrapes post likes for user handles and profile links, limited to 100 per post by Instagram. It reads a post link from Google Sheets, opens it in Chrome, likes the post, and scrapes the user data. Afterward, it deletes the row from Google Sheets and moves on to the next post.

# 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', presuming you already have an account. Name your sheet something like 'Instagram likes’, create two tabs links and data.

# Install the Instagram like scraper

To install this Insta 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 Instagram Like scraper in 5 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 post links in it
  • Step 2.0 - Loop through data
    • Step 2.1 - Go to page: www.instagram.com
      • Enter url - Click 'Insert data' select '[google-sheet-data'], select the column with post links
    • Step 2.2 - Click element: Click on like
      • Preconfigured
    • Step 2.3 - Get data from bot's current page: Scrape likes
      • Preconfigured
    • Step 2.4 - Append or Merge Data:Post link + likes
      • Data A - Click 'Insert data' select post url in '[google-sheet-data]'
      • Data B - Click 'Insert data' select '[scrape-data]'
    • Step 2.5 - Write data to a Google sheet
      • Spreadsheet - Search for the Google Sheet you created. Once found, click to select
      • Sheet name - Choose the tab with the posts in it
    • Step 2.6 - 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 the posts in it

# Run your Instagram like scraper

To test the Instagram bot, execute it on the Desktop, monitor its operation, and then verify the scraped data in the Google Sheet. 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.

# 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.2 - Click element: Click on like
      • Element not found? Reselect the like button on a post
    • Step 2.3 - Get data from bot's current page: Scrape likes
      • No Results? This bot scrapes two colums of data with custom selectors '[role="dialog"] span div' and '[role="dialog"] [role="link"]'.
    • Step 2.5 - Write data to a Google sheet
      • No data? Data click 'Insert data' and select '[appended-data]' We offer excellent customer support. If you need help, get in touch.

Intrested in automating Instagram posting, learn more read this full in-depth guide on automating posting to Instagram.

# More Templates