You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'am using this module to download several images and need them stored with unique file names. file_name is accessible by using .get method of python dictionary.
for i, url in enumerate(self.links):
if metadata[i][metadata_status] == status_ok:
file_path = path.join(dir_path, coordinates + "_" + str(heading) + '.jpg')
metadata[i]['_file'] = path.basename(file_path) # add file reference
helpers.download(url, file_path)
in such a way, you can instantiate the results class passing as arguments the parameters, the lat,lon coordinates and the heading value. All become mandatory with such a solution:
Hi,
Is it possible to specify the filename of the downloaded images when using results.download_links()?
Thank you
The text was updated successfully, but these errors were encountered: