diff --git a/hesychius/download.sh b/hesychius/download.sh new file mode 100755 index 0000000..e861cf7 --- /dev/null +++ b/hesychius/download.sh @@ -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###g;s#<#<#g;s#>#>#g' + done