headers = {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3",
"Cache-Control": "no-cache",
"Connection": "keep-alive",
"Host": "bablobit.ru",
"Pragma": "no-cache",
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0"
}
r1 = requests.get('https://bablobit.ru/index.php?login', headers=headers)
headers = {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3",
"Cache-Control": "no-cache",
"Connection": "keep-alive",
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": "xf_csrf=nQ8YVOhZXb9970xS",
"Host": "bablobit.ru",
"Origin": "https://bablobit.ru",
"Pragma": "no-cache",
"Referer": "https://bablobit.ru/index.php?login/",
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0"
}
headers['Cookie'] = f'xf_csrf={r1.cookies.get_dict()["xf_csrf"]}'
data = {
'login': 'pch',
'password': '0507Vsn1',
'_xfRedirect': 'https://bablobit.ru/index.php',
'_xfToken': str(BeautifulSoup(r1.text, 'lxml').select_one('[name="_xfToken"]')['value'])
}
r = requests.post('https://bablobit.ru/index.php?login/login=', headers=headers, data=data)
print(r.history)
Edit.type_keys('bundles/table.csv')
Edit.set_text('bundles/table.csv')
Через запросы в инсте легко можно получить любую информацию/контент кроме историй людей.