remove context.json

This commit is contained in:
sigma67 2021-04-28 16:35:16 +02:00
commit 90a12774a5
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
4 changed files with 13 additions and 46 deletions

View file

@ -58,6 +58,18 @@ def initialize_headers():
}
def initialize_context():
return {
'context': {
'client': {
'clientName': 'WEB_REMIX',
'clientVersion': '0.1'
},
'user': {}
}
}
def get_visitor_id(request_func):
response = request_func(YTM_DOMAIN)
matches = re.findall(r'ytcfg\.set\s*\(\s*({.+?})\s*\)\s*;', response)