Помогите, пожалуйста, зарегистрироваться на сайте.
У меня выходит ошибка 403
*Selenium не предлагать
Если поможет мой код, то вот он:
import requests
import json
session = requests.Session()
session.headers.update({'referer': 'https://www.nike.com/'})
url = "https://www.nike.com/ru/register"
response = session.get(url)
visitor = response.headers['X-Request-Id']
session.headers.update({'referer': 'https://www.nike.com/'})
data = {"country":"RU","emailOnly":False,"firstName":"Roberto","gender":"M","lastName":"Pisko","locale":"ru_RU","password":"HUiNa222t","receiveEmail":False,"registrationSiteId":"nikedotcom","welcomeEmailTemplate":"","emailAddress":"ssalna3@xaut.xyz","ssn":None,"username":"ssalna3@xaut.xyz","account":{"email":"ssalna3@xaut.xyz","passwordSettings":{"password":"HUiNa222t","passwordConfirm":"HUiNa222t"}},"dateOfBirth":"2000-04-12"}
url = "https://unite.nike.com/access/users/v1?appVersion=841&experienceVersion=841&uxid=com.nike.commerce.nikedotcom.web&locale=ru_RU&backendEnvironment=identity&browser=Google%20Inc.&os=undefined&mobile=false&native=false&visit=1&visitor=" + visitor +"&language=ru&uxId=com.nike.commerce.nikedotcom.web"
response = session.post(url, data=json.dumps(data))
print(response.status_code)