Search code examples
pythonautocompleteautosuggest

How to implement Google Suggest in your own web application (e.g. using Python)


In my website, users have the possibility to store links.

During typing the internet address into the designated field I would like to display a suggest/autocomplete box similar to Google Suggest or the Chrome Omnibar.

Example:

User is typing as URL:

http://www.sta

Suggestions which would be displayed:

http://www.staples.com
http://www.starbucks.com
http://www.stackoverflow.com

How can I achieve this while not reinventing the wheel? :)


Solution

  • You could try with http://google.com/complete/search?output=toolbar&q=keyword

    and then parse the xml result.