mirror of
https://tildegit.org/hyperreal/dl-wp-pdf.git
synced 2026-02-11 09:23:47 +01:00
Download a Wikipedia article as a PDF
| .gitignore | ||
| dl_wp_pdf.py | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
dl-wp-pdf
I've archived this, because it doesn't need to be a package on PyPi. See bin for the current version.
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.