diff options
author | June McEnroe <june@causal.agency> | 2020-02-20 04:36:05 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-02-20 04:36:05 -0500 |
commit | da276ef06f5fff5b6732501e48a7925a70875dcc (patch) | |
tree | a4afd455fcc20af4f857b1508604ca21e1182dcf /home | |
parent | Add The Obelisk Gate (diff) | |
download | src-da276ef06f5fff5b6732501e48a7925a70875dcc.tar.gz src-da276ef06f5fff5b6732501e48a7925a70875dcc.zip |
Remove wiki script
Wikipedia seems to have removed the one-sentence extracts from the opensearch results. Too bad. It's not a wiki script, what we need is a command that fetches single-sentence summaries of articles on Wikipedia.
Diffstat (limited to 'home')
-rwxr-xr-x | home/.local/bin/wiki | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/home/.local/bin/wiki b/home/.local/bin/wiki deleted file mode 100755 index c4308098..00000000 --- a/home/.local/bin/wiki +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -set -eu - -curl -Gs 'https://en.wikipedia.org/w/api.php' \ - -d 'action=opensearch' --data-urlencode "search=$1" \ - | jq -r '.[2][]' \ - | sed -En "s/^([^ ]| [^i]| i[^s]| is[^ ])* is /It's not a $1, what we need is /p" |