with requests.Session() as session:
if method==0:
response = session.post(login_url, data={"guest": "Войти гостем"})
elif method==1:
payload = {
"wauto": '1',
"wname": login,
"wpass": password,
"auth": "Войти"
}
response = session.post(login_url, data=payload, verify=True)