feat(orte): add server root to urls

This commit is contained in:
2022-03-26 17:50:53 +01:00
parent 736f1f37a0
commit 067046a2c0
3 changed files with 67624 additions and 33817 deletions

View File

@@ -2,7 +2,8 @@
root=https://www.orte-in-deutschland.de
extract_orte() {
htmlq 'a[href*="-gemeinde-"], a[href*="-ort-"]' --attribute href
htmlq 'a[href*="-gemeinde-"], a[href*="-ort-"]' --attribute href \
| sed "s#^#$root/#"
}
curl -sSL "$root/alphabetisches-ortsverzeichnis.html" \