import requests
from bs4 import BeautifulSoup
def Auth():
session = requests.Session()
html = session.get(url)
#Получаем код
soup = BeautifulSoup(html.text, 'html.parser')
#Получаем токен из формы
input_hidden_token = soup.find('input')['value']
post_req = {'_token': input_hidden_token, 'email': 'kuawfwafta@oraawfwfnek.com', 'password': '12345awf67awfwaf8'}
r = requests.post(url, params=post_req)
print(r)
print(r.text)
Auth()