import requests
import json
import logging
import time
import fake_useragent
logging.basicConfig(level=logging.DEBUG)
session = requests.Session()
url = "https://www.nike.com/ru/register"
user = fake_useragent.UserAgent().random
data = {"country":"RU","emailOnly":False,"firstName":"Fsss","gender":"M","lastName":"Daas","locale":"ru_RU","password":"asdfasF21a","receiveEmail":False,"registrationSiteId":"nikedotcom","welcomeEmailTemplate":"","emailAddress":"asdfasdd@xaut.xyz","ssn":None,"username":"asdfasdd@xaut.xyz","account":{"email":"asdfasdd@xaut.xyz","passwordSettings":{"password":"asdfasF21a","passwordConfirm":"asdfasF21a"}},"dateOfBirth":"2000-03-12"}
header = {
'user-agent': user
}
response = session.post(url, data, headers=header)
print(response.text)
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): www.nike.com:443
DEBUG:urllib3.connectionpool:https://www.nike.com:443 "POST /ru/register HTTP/1.1" 403 277
<HTML><HEAD>
<TITLE>Access Denied</TITLE>
</HEAD><BODY>
<H1>Access Denied</H1>
You don't have permission to access "http://www.nike.com/ru/register" on this server.<P>
Reference #18.1dff1402.1604433522.31367f99
</BODY>
</HTML>