Skip to content

Instantly share code, notes, and snippets.

@edmcman
Last active October 10, 2023 14:13
Show Gist options
  • Save edmcman/d0c021130bd0081247cfc1946bc37f71 to your computer and use it in GitHub Desktop.
Save edmcman/d0c021130bd0081247cfc1946bc37f71 to your computer and use it in GitHub Desktop.
DIRT urls
>>> [(x['name'], x['download_url'], x['supplied_md5']) for x in fs.list_files(20732656)]
[('3-types.tar.xz', 'https://ndownloader.figshare.com/files/36987409', '75e2c42b3b344b39bbff32575b4408b2'), ('2-types.tar.xz', 'https://ndownloader.figshare.com/files/36987421', 'b07069dda66b9dc3c270f61b835d2c55'), ('2-bins.tar.xz', 'https://ndownloader.figshare.com/files/36987550', '64f27ad13fa9c58cb38ec981deb8fed9'), ('1-types.tar.xz', 'https://ndownloader.figshare.com/files/36987559', '4ff5d6973d2bd0d20c7dfd0c4ee1f7f1'), ('0-bins.tar.xz', 'https://ndownloader.figshare.com/files/36987673', '478cbf47eaf671c7e5312eae931b9705'), ('0-types.tar.xz', 'https://ndownloader.figshare.com/files/36987688', '8f59dc9e96e313b5cc19fb4a44a9305d'), ('1-bins.tar.xz', 'https://ndownloader.figshare.com/files/36987769', '6655006535238f8305dd3a353d1446b0'), ('3-bins.tar.xz', 'https://ndownloader.figshare.com/files/36987922', '3f3ee520aa30646cd98fce160603f75c'), ('SHA256SUMS', 'https://ndownloader.figshare.com/files/36987925', 'e257cf964ec9e0493109e97b638fd0c3'), ('4-bins.tar.xz', 'https://ndownloader.figshare.com/files/36992788', '057c06c33645d6f40e9806eb01629d47'), ('4-types.tar.xz', 'https://ndownloader.figshare.com/files/36992797', 'd8ef436357e04690c1f1395f3bfaebe6'), ('5-bins.tar.xz', 'https://ndownloader.figshare.com/files/36992848', 'c225547009bde0989b7d946fa85f82d5'), ('5-types.tar.xz', 'https://ndownloader.figshare.com/files/36992860', '52edda8c4aff0bda2e326ea0c0eb67fa'), ('6-bins.tar.xz', 'https://ndownloader.figshare.com/files/36992929', '12e2a37f765d6b6dd2f777dc3d96d97f'), ('6-types.tar.xz', 'https://ndownloader.figshare.com/files/36992938', 'a34094f9ac82829f914aa626ede19e5c'), ('7-bins.tar.xz', 'https://ndownloader.figshare.com/files/36993040', '8717a38c43cc7f3b3dbc718a1d4979f5'), ('7-types.tar.xz', 'https://ndownloader.figshare.com/files/36993049', '76f7456fc933df0617585f6bc7cad1c2'), ('8-bins.tar.xz', 'https://ndownloader.figshare.com/files/36993121', 'f3725013d627d9340d0e43f6debd20cc'), ('8-types.tar.xz', 'https://ndownloader.figshare.com/files/36993127', '665bf76067c516c25c34b5dfbb1e1298'), ('9-bins.tar.xz', 'https://ndownloader.figshare.com/files/36993220', 'ebc2acf4b2eb20e282901a915e337dd5'), ('9-types.tar.xz', 'https://ndownloader.figshare.com/files/36993244', 'd88df701cc5ed9fc41da295b3e45d5fa'), ('a-bins.tar.xz', 'https://ndownloader.figshare.com/files/36993331', '57072907b7709e4425084886b7f6fc9e'), ('a-types.tar.xz', 'https://ndownloader.figshare.com/files/36993340', '8ef43c2ac84792b32793b8587c6c03b2'), ('b-bins.tar.xz', 'https://ndownloader.figshare.com/files/36993445', '4b5bbbbb1cd3fd3ea5465ca8ad1822c3'), ('b-types.tar.xz', 'https://ndownloader.figshare.com/files/36993454', 'e91528af7226c1996b3aa021ea93fa2c'), ('c-bins.tar.xz', 'https://ndownloader.figshare.com/files/36993532', 'c0bc7e39f8f39355e530eb1ae8ce63b6'), ('c-types.tar.xz', 'https://ndownloader.figshare.com/files/36993544', '3cc4133864c28d2638fca9ea36f18b6d'), ('d-bins.tar.xz', 'https://ndownloader.figshare.com/files/36993709', '3384d191cd39cbc424d24defba687249'), ('d-types.tar.xz', 'https://ndownloader.figshare.com/files/36993721', 'f901f163f004269ac94d5614694000a6'), ('e-bins.tar.xz', 'https://ndownloader.figshare.com/files/36993826', 'a2ee3f0d3e3fa18ce9682c4c588fa501'), ('e-types.tar.xz', 'https://ndownloader.figshare.com/files/36993835', '0a80f7be4c3e6ed9e9805a4b1f0fcce9'), ('f-bins.tar.xz', 'https://ndownloader.figshare.com/files/36993919', '674876bd8e225352f26f8fc72f79b037'), ('f-types.tar.xz', 'https://ndownloader.figshare.com/files/36993928', 'f7f26029fdde3be2ae4f579bae2ee7d8'), ('data-description.txt', 'https://ndownloader.figshare.com/files/37290373', 'f928159549381bd7eff8379e564cd83b'), ('README.txt', 'https://ndownloader.figshare.com/files/37290370', '8c1f1c3bb44955625e858cd914a7f703')]
>>> for s in [f"aria2c --auto-file-renaming=false {x['download_url']} -o {x['name']}" for x in fs.list_files(20732656)]: print(s)
...
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36987409 -o 3-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36987421 -o 2-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36987550 -o 2-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36987559 -o 1-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36987673 -o 0-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36987688 -o 0-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36987769 -o 1-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36987922 -o 3-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36987925 -o SHA256SUMS
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36992788 -o 4-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36992797 -o 4-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36992848 -o 5-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36992860 -o 5-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36992929 -o 6-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36992938 -o 6-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993040 -o 7-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993049 -o 7-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993121 -o 8-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993127 -o 8-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993220 -o 9-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993244 -o 9-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993331 -o a-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993340 -o a-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993445 -o b-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993454 -o b-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993532 -o c-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993544 -o c-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993709 -o d-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993721 -o d-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993826 -o e-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993835 -o e-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993919 -o f-bins.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/36993928 -o f-types.tar.xz
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/37290373 -o data-description.txt
aria2c --auto-file-renaming=false https://ndownloader.figshare.com/files/37290370 -o README.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment