我试图登录到instagram.Here是我的代码登录到Instagram的使用python
from bs4 import BeautifulSoup
from requests import *
payload = {
'action': 'login',
'username': 'name',
'password': 'pass'
}
with session() as c:
c.post('https://www.instagram.com/login.php', data=payload)
response = c.get('https://www.instagram.com/accounts/edit/')
print(response.headers)
print(response.text)
遗憾的是它似乎并没有记录我在我得到:
lt-ie8 lt-ie7 not-logged-in client-root
任何解决方案将不胜感激。谢谢。
,如果您成功访问过instagram,可以先检查页面吗?有可能你得到了一个错误,特别是如果他们实现了反bot功能。 – jabargas
我试图去'https://www.instagram.com/login.php',页面不存在。 – jabargas
您尚未传递任何标题。你有没有试过包括他们? – Mahesh