4 ms·
There's a real command line coming. If you're on a Debian Linux and feel like testing it out, just do apt install curl jq pip3 install jtbl curl -O https://r
by alangibson 5y ago
There's a real command line coming. If you're on a Debian Linux and feel like testing it out, just do
apt install curl jq
pip3 install jtbl
curl -O https://raw.githubusercontent.com/alangibson/dontbeevil.rip/main/src/rip https://raw.githubusercontent.com/alangibson/dontbeevil.rip/...
chmod u+x rip
./rip 'what is a monad'
- l0b0 5y agoWith long options, JSON output, and no extra Python dependencies: rip() { curl \ --data-urlencode "q=${1}" \ --get \ --header 'Content-Type: application/json' --header 'Accept: application/json' \ --silent \ 'https://dontbeevil.rip/search' \ | jq '[ .hits.hits[] | { title: .fields.title[0], url: .fields.url[0], highlight: .highlight.text[0] } ]' }