Skip to content

Scrap Public Images/Videos and associated titles, likes, and views

License

Notifications You must be signed in to change notification settings

KostasTok/instagram-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instagram Scapper

Scrap Public Images/Videos and associated titles, likes, and views

Tested on July of 2020 for MacOS Catalina

Images and videos are saved as.jpg and .mp4 files. Information on the number of likes (for .jpg), views (for .mp4), and titles are saved and exported as a separate .csv file.

Example Code

# Scrap the Instagram Profile of comedians Joe Rogan and Bert Kreischer
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
indo = InstagramDownloader(
    dir_path=os.path.join(BASE_DIR, 'imgs_stats'), max_posts=5)
indo.download_profile('joerogan')
indo.download_profile('bertkreischer')

Dependencies

Follow instructions from here to install the Selenium WebDriver and the geckodriver for FireFox.

To avoid having to log in you should also install the Instagram-guest Addon on the Selenium browser. If you have FireFox and the addon installed this should be done automatically. Otherwise, you want to update the lines 177-8 in the .py file.

About

Scrap Public Images/Videos and associated titles, likes, and views

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages