Back to front pageView on Hacker News (opens in a new tab)Show HN: Anycomplete (opens in a new tab)github.com390 pointsby nathancahill (on Hacker News)9 years agogithub.com (opens in a new tab)GitHub - nathancahill/Anycomplete: The magic of Google Autocomplete while you're typing. Anywhere.The magic of Google Autocomplete while you're typing. Anywhere. - nathancahill/AnycompleteComments (85) 22 threadsShow all commentsShowing thread 1 of 22[-]stroebjo9 years ago2 replies#This uses the Google Autocomplete API which seems a bit risky to use [0] and according to this Google blog post should be already shut down [1]. Do you have any newer information on how reliable the API is?[0]: http://stackoverflow.com/questions/6428502/google-search-aut... [1]: https://webmasters.googleblog.com/2015/07/update-on-autocomp...nathancahill9 years ago#Nice catch, updated to the new API.[-]AlphaWeaver9 years ago1 reply#Instructions are also included to use DuckDuckGo.jxy9 years ago#Wonderful. I decided to put a script together. #!/bin/bash S="$(echo "$@" | sed -E 's, +,+,g')" g(){ curl -sS "https://suggestqueries.google.com/complete/search?client=firefox&q=$1" \ | sed -E 's,.*\[([^]]*)\].*,\1,;s,",,g' | tr , '\n' } d(){ curl -sS "https://duckduckgo.com/ac/?q=$1" \ | sed -E 's,"phrase":|[][{}"],,g' | tr , '\n' } paste -d , <(g $S) <(d $S) | column -t -s ,
Show HN: Anycomplete (opens in a new tab)github.com390 pointsby nathancahill (on Hacker News)9 years ago
stroebjo9 years ago2 replies#This uses the Google Autocomplete API which seems a bit risky to use [0] and according to this Google blog post should be already shut down [1]. Do you have any newer information on how reliable the API is?[0]: http://stackoverflow.com/questions/6428502/google-search-aut... [1]: https://webmasters.googleblog.com/2015/07/update-on-autocomp...
jxy9 years ago#Wonderful. I decided to put a script together. #!/bin/bash S="$(echo "$@" | sed -E 's, +,+,g')" g(){ curl -sS "https://suggestqueries.google.com/complete/search?client=firefox&q=$1" \ | sed -E 's,.*\[([^]]*)\].*,\1,;s,",,g' | tr , '\n' } d(){ curl -sS "https://duckduckgo.com/ac/?q=$1" \ | sed -E 's,"phrase":|[][{}"],,g' | tr , '\n' } paste -d , <(g $S) <(d $S) | column -t -s ,
Comments (85) 22 threads
Show all comments
Showing thread 1 of 22
[0]: http://stackoverflow.com/questions/6428502/google-search-aut... [1]: https://webmasters.googleblog.com/2015/07/update-on-autocomp...