You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
searxng/searx
Emilien Devos 5fb2071cb2 [fix] google & youtube - set EU consent cookie
This change the previous bypass method for Google consent using
``ucbcb=1`` (6face215b8) to accept the consent using ``CONSENT=YES+``.

The youtube_noapi and google have a similar API, at least for the consent[1].

Get CONSENT cookie from google reguest::

    curl -i "https://www.google.com/search?q=time&tbm=isch" \
         -A "Mozilla/5.0 (X11; Linux i686; rv:102.0) Gecko/20100101 Firefox/102.0" \
         | grep -i consent
    ...
    location: https://consent.google.com/m?continue=https://www.google.com/search?q%3Dtime%26tbm%3Disch&gl=DE&m=0&pc=irp&uxe=eomtm&hl=en-US&src=1
    set-cookie: CONSENT=PENDING+936; expires=Wed, 24-Jul-2024 11:26:20 GMT; path=/; domain=.google.com; Secure
    ...

PENDING & YES [2]:

  Google change the way for consent about YouTube cookies agreement in EU
  countries. Instead of showing a popup in the website, YouTube redirects the
  user to a new webpage at consent.youtube.com domain ...  Fix for this is to
  put a cookie CONSENT with YES+ value for every YouTube request

[1] https://github.com/iv-org/invidious/pull/2207
[2] https://github.com/TeamNewPipe/NewPipeExtractor/issues/592

Closes: https://github.com/searxng/searxng/issues/1432
2 years ago
..
answerers
data Update searx.data - update_engine_descriptions.py 2 years ago
engines [fix] google & youtube - set EU consent cookie 2 years ago
infopage
metrics
network bing.py: resolve bing.com/ck/a redirections 2 years ago
plugins [mod] add tor_check plugin - convenient tor checking trough searxng 2 years ago
search Merge pull request #1443 from return42/fix-online_dictionary 2 years ago
shared
static [build] /static 2 years ago
templates/simple [fix] preferences: missing option value 2 years ago
translations [translations] update from Weblate 2 years ago
__init__.py
autocomplete.py
babel_extract.py
compat.py
exceptions.py
external_bang.py
external_urls.py
flaskfix.py
languages.py
locales.py locales.py: add support for Papiamento 2 years ago
preferences.py
query.py
redislib.py
results.py
searxng.msg
settings.yml [fix] sjp engine - convert enginename to a latin1 compliance name 2 years ago
settings_defaults.py Merge pull request #1428 from return42/fix-center_aligment 2 years ago
settings_loader.py
unixthreadname.py
utils.py
version.py
webadapter.py
webapp.py
webutils.py