Small tool to find and download web fonts referenced by a webpage. Always check font licenses before using any downloaded files.
- Python 3.8 or newer
- Optional: fontforge (for converting .woff to .ttf)
- Clone the repo: git clone https://github.com/xoolive/font-dl && cd font-dl
- Create and activate a virtualenv: python3 -m venv venv && source venv/bin/activate
- Install the package in editable mode (optional): pip install -e .
- Use the bundled launcher with PYTHONPATH set to the project root: PYTHONPATH=. python3 bin/font-dl
- If installed with pip (step 3), run: font-dl
- The script sets a browser-like User-Agent header; servers may still return 429 (Too Many Requests). If you hit 429, wait or retry later.
- Fonts are saved in a directory named after the target host.
- It is your responsibility to respect font licenses.
MIT