使用请求模块Python登录instagram时出现问题


import requests as s
url='https://www.instagram.com/accounts/login/'
data={'username':'****', 'password':'******'}
p=s.post(url, data=data, allow_redirects=True)
to_check= p.text
if('Sorry, your password was incorrect. Please double-check your password.' in >
print('Password incorrect.')
elif("The username you entered doesn't belong to an account. Please check your >
print('Username incorrect.')
else:
print('Unknown error.')

输出(即使是正确的用户名(:

用户名不正确。我很困惑,有人能帮我吗?

我会使用python-instagram模块登录instagram。

最新更新