[GH-ISSUE #64] Autocomplete - would be nice [ 2nd edition ] #40

Closed
opened 2026-02-25 20:34:46 +03:00 by kerem · 3 comments
Owner

Originally created by @elvirmuslic on GitHub (May 19, 2020).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/64

Originally assigned to: @benbusby on GitHub.

As mentioned by user @gripped
The following API works really well in terms of autocomplete and I haven't found any limits to it YET.

https://github.com/asciimoo/searx/blob/master/searx/autocomplete.py

Might be worth a look ;) Doesn't look that complex but then I can't program.

Here would be an example of implementing the autocomplete.

    import requests, json
    URL="http://suggestqueries.google.com/complete/search?client=firefox&q=Hel Wor"
    headers = {'User-agent':'Mozilla/5.0'}
    response = requests.get(URL, headers=headers)
    result = json.loads(response.content.decode('utf-8'))
    print(result)

This is from Quora by: Michael Staniek Thank you!

There is no auth key or token, should work pretty well I will try to spam it for a little bit to see if there are limits.

Originally created by @elvirmuslic on GitHub (May 19, 2020). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/64 Originally assigned to: @benbusby on GitHub. As mentioned by user @gripped The following API works really well in terms of autocomplete and I haven't found any limits to it YET. https://github.com/asciimoo/searx/blob/master/searx/autocomplete.py Might be worth a look ;) Doesn't look that complex but then I can't program. Here would be an example of implementing the autocomplete. ``` import requests, json URL="http://suggestqueries.google.com/complete/search?client=firefox&q=Hel Wor" headers = {'User-agent':'Mozilla/5.0'} response = requests.get(URL, headers=headers) result = json.loads(response.content.decode('utf-8')) print(result) ``` This is from Quora by: Michael Staniek _Thank you!_ There is no auth key or token, should work pretty well I will try to spam it for a little bit to see if there are limits.
kerem 2026-02-25 20:34:46 +03:00
Author
Owner

@elvirmuslic commented on GitHub (May 19, 2020):

I have run 1000 iterations ( queries ) in 2 minutes and 43 seconds.

Everything works perfectly, the API doesn't even throttle. In my example I ran ~6 queries a second.

Here is the log, https://pastebin.com/q5SNLxXV

<!-- gh-comment-id:630531416 --> @elvirmuslic commented on GitHub (May 19, 2020): I have run 1000 iterations ( _queries_ ) in **2 minutes and 43 seconds**. Everything works perfectly, the API doesn't even throttle. In my example I ran **~6 queries** a second. Here is the log, https://pastebin.com/q5SNLxXV
Author
Owner

@benbusby commented on GitHub (May 19, 2020):

Wow, I’m kinda shocked. I expected there to at least require an API key, if not a monthly subscription or something.

I’ll work on implementing this soon.

<!-- gh-comment-id:630908571 --> @benbusby commented on GitHub (May 19, 2020): Wow, I’m kinda shocked. I expected there to at least require an API key, if not a monthly subscription or something. I’ll work on implementing this soon.
Author
Owner

@elvirmuslic commented on GitHub (May 19, 2020):

Yea mee too, there is the code in their github u can just copy paste.

Where @gripped gave you the link,
https://github.com/asciimoo/searx/blob/master/searx/autocomplete.py

On Tue, 19 May 2020, 17:46 Ben Busby, notifications@github.com wrote:

Wow, I’m kinda shocked. I expected there to at least require an API key,
if not a monthly subscription or something.

I’ll work on implementing this soon.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/benbusby/whoogle-search/issues/64#issuecomment-630908571,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANRLACQY6PIQHM57KVKX73TRSKSV5ANCNFSM4NESKCCA
.

<!-- gh-comment-id:630997109 --> @elvirmuslic commented on GitHub (May 19, 2020): Yea mee too, there is the code in their github u can just copy paste. Where @gripped gave you the link, https://github.com/asciimoo/searx/blob/master/searx/autocomplete.py On Tue, 19 May 2020, 17:46 Ben Busby, <notifications@github.com> wrote: > Wow, I’m kinda shocked. I expected there to at least require an API key, > if not a monthly subscription or something. > > I’ll work on implementing this soon. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/benbusby/whoogle-search/issues/64#issuecomment-630908571>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ANRLACQY6PIQHM57KVKX73TRSKSV5ANCNFSM4NESKCCA> > . >
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#40
No description provided.