Skip to content

Instantly share code, notes, and snippets.

@kovid-rathee
Created February 4, 2017 07:41
Show Gist options
  • Save kovid-rathee/4d84db567d1d77cdcf5e466ecac38cd8 to your computer and use it in GitHub Desktop.
Save kovid-rathee/4d84db567d1d77cdcf5e466ecac38cd8 to your computer and use it in GitHub Desktop.
Python Script to fetch and organize Instagram photos and videos chronologically using instaLooter
import os
import sys
import subprocess
import instaLooter
basepath = "/Users/kovid.rathee/Desktop/instaLooter/"
accounts = ['rupikaur_','fursty','tropicalratchet','dylankato','asyrafacha','tomashavel','runawayueli','dreamingandwandering']
for account in accounts:
dir = basepath + account
print(os.path.isdir(dir))
if not os.path.exists(dir):
os.makedirs(dir)
command = "instaLooter %s %s -v -m -T {username}.{datetime}" % (account, dir)
p = subprocess.Popen(command.split(), shell=False, stdout=subprocess.PIPE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment