From a6f38f81e6e0835d5845e8a603f8313df8859981 Mon Sep 17 00:00:00 2001 From: Stefal Date: Sun, 10 Sep 2023 19:50:24 +0200 Subject: [PATCH] download full size image --- download.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/download.py b/download.py index f80a79f..817f25f 100644 --- a/download.py +++ b/download.py @@ -57,11 +57,11 @@ if __name__ == '__main__': print('getting urls') for x in range(0, img_num): 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) data = r.json() 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') for i,url in enumerate(urls):