@@ -85,7 +85,7 @@ def request(query, params):
8585
8686 query_url = 'https://'+ subdomain + '/search' + "?" + urlencode({
8787 'q': query,
88− 'hl': lang_country,
88+ 'hl': language,
8989 'lr': "lang_" + language,
9090 'ie': "utf8",
9191 'oe': "utf8",
@@ -108,6 +108,10 @@ def request(query, params):
108108 params['headers']['Accept'] = (
109109 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
110110 )
111+
112+ # hl=en redirect to hl=en-US / en-CA ...
113+ params['soft_max_redirects'] = 1
114+
111115 #params['google_subdomain'] = subdomain
112116
113117 return params