Download a Wikipedia article as a PDF
Go to file
2024-12-04 02:51:27 -06:00
.gitignore Initial commit 2024-12-04 02:25:49 -06:00
dl_wp_pdf.py Initial commit 2024-12-04 02:25:49 -06:00
LICENSE Initial commit 2024-12-04 02:25:49 -06:00
pyproject.toml Update pyproject.toml 2024-12-04 02:51:27 -06:00
README.md Update pyproject.toml 2024-12-04 02:51:27 -06:00

dl-wp-pdf

This program just downloads a Wikipedia article as a PDF by using the Wikipedia REST API.

Installation

pipx install dl-wp-pdf

Usage

Use the Wikipedia article's name as the argument to dl-wp-pdf. For example, if the article's URL is https://en.wikipedia.org/wiki/Python_(programming_language), then the argument for dl-wp-pdf would be "Python_(programming_language)".

cd ~/downloads
dl-wp-pdf "Python_(programming_language)"

Output:
--> /home/jas/downloads/Python_(programming_language).pdf

Note: make sure to use quotes around the article name in the argument to dl-wp-pdf.