\ How to scrape Images and other data from Instagram ?

support@webharvy.com | sales@webharvy.com | YouTube Channel | KB Articles

Articles Home

Product Help

YouTube Channel

WebHarvy Blog

Instagram Data Extraction | Scraping Images from Instagram


In this article we will see how WebHarvy can be easily configured to scrape images from Instagram website. Being a generic web scraping software, WebHarvy can be easily configured to extract data from any website as per your requirement.

WebHarvy can be used to easily extract/download images from Instagram profile pages and searches. Apart from images WebHarvy can also scrape textual data from Instagram including profile/follower details etc.

How to automatically download images from Instagram?


The following video shows how WebHarvy can be configured to extract images from Instagram posts. The same technique can be applied to extract data from profile pages and your feed. Along with images, other details like profile name, image location, number of likes etc. are also extracted.




The JS codes used in the above video for opening the first image and for pagination can be found in the video description here.

Scraping multiple images (per post) from Instagram


Instagram posts may contain multiple images. The following video shows how such multiple images can be automatically extracted using WebHarvy. This video also shows how details like location, URL and content can be extracted.



The regular expression strings used in the video along with the JavaScript code used for pagination can be found in the video description.

How to scrape follower names of an Instagram profile ?


The following video shows how you can scrape name and handles of followers of any Instagram profile.



The JavaScript code used in the above video for pagination is copied below:

var scrollEl = document.getElementsByClassName('pbNvD fPMEg')[0].children[1].children[0].children[0];
scrollEl.children[scrollEl.children.length-1].scrollIntoView();

Know More


Watch: WebHarvy Video Tutorial

We recommend that you download and try the evaluation version and also view the video demonstrations.

Download the FREE evaluation version of WebHarvy

Need Support ?


In case you need assistance in configuring WebHarvy, please do not hesitate to contact our support team (support@webharvy.com) with the details (URL of the webpage + details of the data to be scraped). We are happy to help you get started with your first data extracting project using WebHarvy !