Python中文
首页
教程
问答
标签
搜索
登录
注册
使用python登录instagram
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我正在尝试登录instagram。这是我的代码</p> <pre><code>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) </code></pre> <p>不幸的是它似乎没有让我登录。我得到:</p> <pre><code>lt-ie8 lt-ie7 not-logged-in client-root </code></pre> <p>任何解决办法都将不胜感激。谢谢。</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>你需要一个API密钥才能调用instagramapi,而且我不认为你可以直接登录这样的人。</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
尽管Python中的所有内容都是引用,为什么Python导师在没有指针的列表中绘制字符串和整数?
6 回答
尽管python中的表达式为false,但循环仍在运行
1 回答
尽管python代码正确,但从nifi ExecuteScript处理器获取语法错误
7 回答
尽管Python在Neovim中工作得很好,但插件不能识别Neovim中的Python主机
1 回答
尽管python字典包含了大量的条目,但它并没有增长
8 回答
尽管python说模块存在,为什么我会得到这个消息?
1 回答
尽管setuptools和控制盘是最新的,但无法识别singleversionexternallymanaged
7 回答
尽管stdout和stderr重定向,但未捕获错误消息
9 回答
尽管Tensorboard的事件太大,但Tensorboard的步骤太少了
8 回答
尽管tkinter上的变量已更改,但显示未更改
8 回答
尽管try/except使用Python进行单元测试时出现断言错误
1 回答
尽管URL是sam,但仍会抛出“达到最大重定向”
3 回答
尽管url有效,Pandas仍读取url的\u csv错误
5 回答
尽管while中存在时间延迟,但LINUX线程的CPU利用率为100%(1)
3 回答
尽管x0在范围内,Scipy优化仍会引发ValueError
3 回答
尽管xpath正确,但使用selenium单击链接仍不起作用
5 回答
尽管下载了ffmpeg并设置了路径变量python,但没有后端错误
5 回答
尽管下载了i,但找不到型号“fr”
9 回答
尽管下载了plotnine包,但未获取名为“plotnine”的模块时出错
1 回答
尽管为所有行指定了权重,网格(0)仍不起作用
8 回答