Add anki deck to documentation
[llpp.git] / misc / wikipedia / wpget
blobc2510e0435c636581ecebbef4aab0641c1bbee29
1 #!/bin/sh
2 set -e
4 url="$1"
5 test -z "$2" && {
6 u=$(python3 -c "import urllib.parse; print (urllib.parse.unquote ('$url'))")
7 out=$(echo "${u##*wiki/}.pdf" | tr / _)
8 } || out=$2
10 td=$(dirname $(readlink -f "$0"))
12 prince \
13 --no-author-style \
14 --javascript \
15 --media screen \
16 -s file://$td/wiki2.css "$url" -o "$out"