summaryrefslogtreecommitdiff
path: root/searx/engines/google.py
AgeCommit message (Collapse)Author
2019-12-07[fix] update xpaths for new google results pageMarc Abonce Seguin
2019-12-02Merge pull request #1744 from dalf/optimizationsAdam Tauber
[mod] speed optimization
2019-11-22[fix] Force Google old UI with a new user agentEmilien Devos
2019-11-15[mod] speed optimizationDalf
compile XPath only once avoid redundant call to urlparse get_locale(webapp.py): avoid useless call to request.accept_languages.best_match
2019-05-29[fix] Force Google old UI (#1597)Emilien Devos
2019-01-07Revert "remove 'all' option from search languages"Noémi Ványi
This reverts commit 4d1770398a6af8902e75c0bd885781584d39e796.
2019-01-06[fix] fetch google's supported languagesMarc Abonce Seguin
2019-01-06[fix] check language aliases when setting search languageMarc Abonce Seguin
2018-04-18[fix] force English results in Google when using en-USMarc Abonce Seguin
2018-03-27refactor engine's search language handlingMarc Abonce Seguin
Add match_language function in utils to match any user given language code with a list of engine's supported languages. Also add language_aliases dict on each engine to translate standard language codes into the custom codes used by the engine.
2018-03-20fix fetch_langauges to be more accurateMarc Abonce Seguin
Add languages supported by either all default general engines or 10 engines.
2017-12-18send constant cookie with query to GoogleNoémi Ványi
2017-12-06remove 'all' option from search languagesmarc
2017-12-05[fix] handle /sorry redirectsAdam Tauber
2017-11-22[fix] use english in google engine if no language was set - this prevents ↵Adam Tauber
guessing the language by the IP of the instance
2017-11-22[fix] revert language changes to prevent CAPTCHAsAdam Tauber
2017-11-21[fix] fix language support of googleAdam Tauber
2017-05-15[enh] py3 compatibilityAdam Tauber
2017-01-27[enh] add result number parsing to google engineAdam Tauber
2017-01-16[enh] show spelling correctionsDavid A Roberts
2017-01-05[enh] add instant answers to google engineAdam Tauber
2016-12-15tests for _fetch_supported_languages in enginesmarc
and refactor method to make it testable without making requests
2016-12-13[mod] fetch supported languages for several enginesmarc
utils/fetch_languages.py gets languages supported by each engine and generates engines_languages.json with each engine's supported language.
2016-12-13filter langaugesmarc
2016-12-13[enh] add supported_languages on engines and auto-generate languages.pymarc
2016-12-11add year to time range to engines which support "Last year"Noémi Ványi
Engines: * Bing images * Flickr (noapi) * Google * Google Images * Google News
2016-12-09[mod] do not escape html content in enginesAdam Tauber
2016-07-26[fix] time range detectionAdam Tauber
2016-07-25add time range search for googleNoemi Vanyi
2016-07-11Fix anomalous backslash in stringstepshal
2016-04-14Merge pull request #526 from ukwt/animeAdam Tauber
Add a few search engines
2016-04-13Fix a few typos in Google search engineKirill Isakov
2016-03-25[fix] no more redirect ++ explicitly specify search language to avoid ↵Adam Tauber
googles ip based heuristics
2016-01-18[fix] temporary disable googles inner links - #491Adam Tauber
2016-01-10[fix] google markup change - closes #489Adam Tauber
2015-12-22[fix] prevent google engine to redirectAdam Tauber
nid/pref cookies are also removed
2015-12-15[fix] quickfix for sometimes missing PREF cookieAdam Tauber
2015-10-29[fix] google engine - ignore new useless result typeAdam Tauber
2015-09-30[fix] content escaping - closes #441Adam Tauber
TODO check other engines too
2015-06-06google engine: code cleanupDalf
2015-06-05google engine :remove OSM mapDalf
2015-06-05[enh] google engine : parse map links and moreAlexandre Flament
2015-05-30[enh] google engine : avoid some "sorry google" by adding another cookie : ↵Alexandre Flament
NID. This cookie is specific by hostname. This allow to send request to google.* (according to the search language). Before this commit, request in other languages than english was sent to www.google.com which was redirected to www.google.* The PREF is still use on the www.google.com domain.
2015-05-01Revert of #195 when the search language is not englishAlexandre Flament
Sometimes there is two requests to google (depending of the source IP) : one to google.com, the second to google.fr (for instance). Going to https://www.google.com/ncr and saving the PREF cookie for future use prevent this (there is no redirection). But, recently (or not ?), by doing this the search returns English results even if the Accept-Language is specified. There is still a way to prevent this : going to preference, set the search language. I don't know if this can be done by searx. For now, a quick fix is to disable the use of the PREF cookie when the search language is not English (google engine will slower but returns excepted results).
2015-01-22[fix] google engine: depending on the IP of the searx instance, each searx ↵dalf
request where making two HTTP requests (see https://support.google.com/websearch/answer/873?hl=en )
2014-12-09[mod] image results removed from google engineAdam Tauber
2014-12-05[fix] pep8Adam Tauber
2014-09-14[fix] rewrite the google engine since Google Web Search API is about to expireDalf
2014-09-01add comments to google-enginesThomas Pointhuber
2014-01-31[enh] search language support initasciimoo