hesychius: add download script

This commit is contained in:
2022-07-21 20:26:08 +02:00
parent 0bfb5d29cb
commit ddb770da6f

9
hesychius/download.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
root=https://el.wikisource.org
curl -sSL "$root/wiki/%CE%93%CE%BB%CF%8E%CF%83%CF%83%CE%B1%CE%B9" \
| htmlq --attribute href 'ol li a[title^="Γλ"]' \
| while read -r slug; do
curl -sSL "$root$slug" | htmlq dd | sed 's#</\?dd>##g;s#&lt;#<#g;s#&gt;#>#g'
done