Created
February 4, 2017 07:41
-
-
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
This file contains 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
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