Created
April 10, 2012 11:45
-
-
Save rrrodrigo/2350790 to your computer and use it in GitHub Desktop.
How to download all your Instagram pictures in highest resolution without using any API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Following the news about Facebook buying Instagram I decided to delete my Instagram account before Facebook claims ownership of my pictures. | |
Since the Instagram-recommended (in their FAQ): http://instaport.me/export doesn't work for me (probably they can't cope with the high demand), | |
here is a quick and dirty way to download all my Instagram pictures in their highest resolution in a few easy steps. | |
You will need: Firefox, Firebug, some text editor, wget | |
1. Go to http://statigr.am/yourlogin using Firefox with Firebug extension active | |
2. Scroll down as many times as it is needed to have all yor pictures thumbnails displayed (I had some 3 hundred pictures so it was not that much scrolling, YMMV) | |
3. In the Firebug JS console run this JS code: $(".lienPhotoGrid a img").each(function(index) { console.log($(this).attr('src')) }) | |
4. JS console will contain urls to all the thumbnails images, like this: http://distilleryimage1.s3.amazonaws.com/4ed46cf2801511e1b9f1123138140926_5.jpg | |
5. Copy/paste to your favorite editor | |
6. Search and replace "_5.jpg" with "_7.jpg" | |
7. Save the resulting file as 'filelist.txt' or whatever | |
8. Run in your terminal: wget -i filelist.txt | |
9. Done! Now you can upload the pictures to another photo sharing service and enjoy them there until it gets bought by Facebook or Google. | |
Flickr seems a safe bet for now. | |
10. Don't forget to delete your Instagram account ASAP at https://instagram.com/accounts/remove/request/ | |
Note, that you won't get titles, comments, locations, faves, etc. that way, only pictures (which is all I care about). |
@Lujaw I tried that script too..and the others..Did they changed again something ? Because no script works anymore. One month ago, the script worked for me.
and to do it on android??
$(".lienPhotoGrid img").each(function(index) { document.write($(this).attr('src').replace("s150x150","s1080x1080").replace(/\?.*/,"").concat("<br />") )})
Works for me (as at 2016-03-31) with iconosquare.com and Chrome console – document.write
used because Chrome truncates long URLs logged to console. Similar technique for videos:
$(".popinvideo").each(function(index) { document.write($(this).attr('href').concat("<br />") )})
And (largely for my own reference, when I inevitably end up here in a few months' time having forgotten everything) how to use wget
to redownload only new or updated files linked in filelist.txt
:
wget -N -i filelist.txt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@rrrodrigo Thanks for the script and @atte-tamminen Thanks for the informing about the change. I was trying "_l.jpg" .. Downloading all my IG photos. :)