Instagram Image Downloader

Instagram Image Downloader

- 1 min

My friend has a very bad habit of stalking people on Instagram. You can find him online all the time in Instagram. One day he came to me and asked to write code to download the images from instagram.

I have gone through the source code of instagram and seen that the images are loaded in same way in all pages. So I used BeautifulSoup (bs4) in python to extract the image url from the given post url. I have also added some functionalities like downloading images from various Urls single time, specifing download location.


Usage:

insta.py [OPTION] [URL]

Options:

-u [Instagram URL] Download single photo from Instagram URL

-f [File path] Download Instagram photo(s) using file list

-h, –help Show this help message

Example:

python insta.py -u https://instagram.com/p/xxxxx

python insta.py -f /home/username/filelist.txt


Code:


Source on Github : Instagram Image Downloader

Please comment your views/suggestions below.

Sunil Tatipelly

Sunil Tatipelly

Supposedly Engineer. Major Geek. Food Freak. Proud IITian. Quirkyalone.

comments powered by Disqus
rss facebook twitter github youtube mail spotify instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora