Skip to content

Instantly share code, notes, and snippets.

@dalekunce
Last active December 16, 2015 18:27
Show Gist options
  • Select an option

  • Save dalekunce/f883a4c283362f1c01e1 to your computer and use it in GitHub Desktop.

Select an option

Save dalekunce/f883a4c283362f1c01e1 to your computer and use it in GitHub Desktop.
hottm_downloader
#downloader for HOT TM project AOIs
import sys, csv, wget
csv_file = open(str(sys.argv[1]))
reader = csv.reader(csv_file)
#skip the header row
next(reader)
for row in reader:
mm_task_num = row[0]
print mm_task_num
mm_task_url = row[1]
print mm_task_url
wget.download(mm_task_url)
#file rename not needed
# os.rename("tasks.json", mm_task_num + ".json")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment