Skip to content

Instantly share code, notes, and snippets.

@tanepiper
Forked from rrrodrigo/instagram-download.txt
Created December 18, 2012 13:37
Show Gist options
  • Save tanepiper/4328029 to your computer and use it in GitHub Desktop.
Save tanepiper/4328029 to your computer and use it in GitHub Desktop.
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).
@89673974096
Copy link

instagram-download.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment