import requests
url = 'https://vktarget.ru/api/all.php'
session = requests.Session()
session.headers.update({'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0', 'Referer':'https://vktarget.ru/login/', 'VKN':'46a77707a2708cea8901394e339a5abe'})
post_request = session.post(url, {
'action': "auth",
'email': "*****",
'password': "****",
'js_on': "2020",
'timezone_diff': "-180",
'answer_code': ""
})
print(post_request.json())
import requests
url = 'https://vktarget.ru/login/'
session = requests.Session()
session.headers.update({'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0'})
post_request = session.post(url, {
'action': "auth",
'email': "******",
'password': '*******',
'js_on': "2020",
'timezone_diff': "-180",
'answer_code': ""
})
print(post_request)