Skip to content

Instantly share code, notes, and snippets.

@hibetterheyj
hibetterheyj / all_pdf_dl.py
Last active April 11, 2024 12:54
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