Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/...

chmod u+x rip

./rip 'what is a monad'



With 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] } ]'
  }




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: