сайт:
https://vktarget.ru/
код:
import requests
from bs4 import BeautifulSoup
from fake_useragent import UserAgent as ua
s = requests.Session()
url = "https://vktarget.ru/api/all.php"
user = ua().random
header = {
"user-agent": user
}
data = {
"email": "email",
"password": "password"
}
response = s.post(url, data=data, headers=header)
profile_url = "https://vktarget.ru/profile"
profile_response = s.get(profile_url, headers=header).text
soup = BeautifulSoup(profile_response, "lxml")
base = soup.find("div", class_="col-md-10 col-sm-12 xs_hide sm_hide flex-middle")
base_2 = base.find("div", class_="field").text
print(base_2)
что я делаю не так?