bypass google consent with ucbcb=1

This commit is contained in:
Emilien Devos 2022-07-09 23:08:08 +02:00 committed by GitHub
parent 641e39b0df
commit 6face215b8
7 changed files with 7 additions and 39 deletions

View file

@ -118,15 +118,7 @@ def request(query, params):
+ lang_info['subdomain']
+ '/search'
+ "?"
+ urlencode(
{
'q': query,
'tbm': "vid",
**lang_info['params'],
'ie': "utf8",
'oe': "utf8",
}
)
+ urlencode({'q': query, 'tbm': "vid", **lang_info['params'], 'ie': "utf8", 'oe': "utf8", 'ucbcb': 1})
)
if params['time_range'] in time_range_dict: