python-requests - 使用 python 请求在网站上登录帐户
问题描述
(为这个程序创建的帐户)我试图登录到这个网站
使用 Python 请求,但在完成程序 get.url 后,'url' 向我显示https://m.brandshop.ru/login/ 而不是https://m.brandshop.ru/account
import requests
s = requests.session()
username = 'shit10322@yandex.ru'
password = 'Ih2da1s!'
URL = 'https://brandshop.ru/login/'
payload = {'email':username, 'password':password, 'redirect':'https://brandshop.ru/account/'}
r = s.post(URL, data=payload)
print(r.url,'url')