Last active
December 16, 2015 18:27
-
-
Save dalekunce/f883a4c283362f1c01e1 to your computer and use it in GitHub Desktop.
hottm_downloader
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
| #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