Created
April 5, 2024 09:51
-
-
Save animesh-chouhan/a5ce8bb61f13029e937150d34d7e7414 to your computer and use it in GitHub Desktop.
Python script to download Arpit Bhayani's papershelf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re, wget, requests | |
from concurrent.futures import ThreadPoolExecutor | |
r = requests.get("https://arpitbhayani.me/papershelf") | |
ids = re.findall(r"/d/(.*)/view", r.text) | |
urls = [f"https://drive.usercontent.google.com/u/0/uc?id={id}&export=download" for id in ids] | |
with ThreadPoolExecutor() as executor: | |
executor.map(wget.download, urls) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment