Browse Source

Merge pull request #1121 from kvch/add-cookie-to-reqs

Fix google searches
Adam Tauber 7 years ago
parent
commit
943404a103
No account linked to committer's email
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      searx/engines/google.py

+ 2
- 0
searx/engines/google.py View File

187
     else:
187
     else:
188
         google_hostname = default_hostname
188
         google_hostname = default_hostname
189
 
189
 
190
+    # original format: ID=3e2b6616cee08557:TM=5556667580:C=r:IP=4.1.12.5-:S=23ASdf0soFgF2d34dfgf-_22JJOmHdfgg
191
+    params['cookies']['GOOGLE_ABUSE_EXEMPTION'] = 'x'
190
     params['url'] = search_url.format(offset=offset,
192
     params['url'] = search_url.format(offset=offset,
191
                                       query=urlencode({'q': query}),
193
                                       query=urlencode({'q': query}),
192
                                       hostname=google_hostname,
194
                                       hostname=google_hostname,