Skip to content

Instantly share code, notes, and snippets.

@hibetterheyj
hibetterheyj / all_pdf_dl.py
Last active September 6, 2025 07:06
Download all pdf files from a website
import os
import requests
from urllib.parse import urljoin
from bs4 import BeautifulSoup
import argparse
#%% Example
# one pdf
# python all_pdf_dl.py -l https://memento.epfl.ch/academic-calendar/ --save-here
# many pdfs