the google thing is a template now: to make it work with a webpage, just replace PUTQUERYHERE with the flask query. Instead of spaces, put an underscore ( _ ).