commit f96cc5f2500b102b3f9bb09f23a52daa45479a0e
parent 22b3ae40de2bb066a5f2b8b3aa6f709fd7e99e8f
Author: Bakar Chargeishvili <bakar@bcharge.de>
Date: Wed, 4 Dec 2024 14:10:23 +0100
[lat] wiktionary has changed the html format
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lat b/lat
@@ -1,3 +1,5 @@
#!/bin/sh
-curl -v --stderr - "https://en.wiktionary.org/wiki/$1" | awk '/<h2><span class="mw-headline" id="Latin">Latin<\/span>/{p=1} /References/{p=0} p' | w3m -dump -T text/html | less
+#Extract the Latin section from wiktionary
+
+curl -v --stderr - "https://en.wiktionary.org/wiki/$1" | awk '/<h2 id="Latin">Latin<\/h2>/{p=1} /References/{p=0} p' | w3m -dump -T text/html | less