download full size image

This commit is contained in:
Stefal 2023-09-10 19:50:24 +02:00
parent 713856ebfc
commit a6f38f81e6

View File

@ -57,11 +57,11 @@ if __name__ == '__main__':
print('getting urls') print('getting urls')
for x in range(0, img_num): for x in range(0, img_num):
image_id = image_ids[x]['id'] image_id = image_ids[x]['id']
req_url = 'https://graph.mapillary.com/{}?fields=thumb_2048_url'.format(image_id) req_url = 'https://graph.mapillary.com/{}?fields=thumb_original_url'.format(image_id)
r = requests.get(req_url, headers=header) r = requests.get(req_url, headers=header)
data = r.json() data = r.json()
print('getting url {} of {}'.format(x, img_num)) print('getting url {} of {}'.format(x, img_num))
urls.append(data['thumb_2048_url']) urls.append(data['thumb_original_url'])
print('downloading.. this process will take a while. please wait') print('downloading.. this process will take a while. please wait')
for i,url in enumerate(urls): for i,url in enumerate(urls):