hesychius: add download script
This commit is contained in:
9
hesychius/download.sh
Executable file
9
hesychius/download.sh
Executable 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#<#<#g;s#>#>#g'
|
||||
done
|
||||
Reference in New Issue
Block a user