Skip to content

Instantly share code, notes, and snippets.

@animesh-chouhan
Created April 5, 2024 09:51
Show Gist options
  • Save animesh-chouhan/a5ce8bb61f13029e937150d34d7e7414 to your computer and use it in GitHub Desktop.
Save animesh-chouhan/a5ce8bb61f13029e937150d34d7e7414 to your computer and use it in GitHub Desktop.
Python script to download Arpit Bhayani's papershelf
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