Skip to content

Commit 4d94502

Browse files
committed
updated api call to figshare for file download
1 parent 004b730 commit 4d94502

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

coderdata/download/downloader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ def download(
8787

8888
for file_name, file_data in unique_files.items():
8989
file_info = file_data['file_info']
90-
file_url = file_info['download_url']
90+
file_id = str(file_info['id'])
91+
file_url = "https://api.figshare.com/v2/file/download/" + file_id
9192
file_md5sum = file_info['supplied_md5']
9293
retry_count = 10
9394
# Download the file

0 commit comments

Comments
 (0)