我试着用instapy,但是我一直收到这个错误
INFO [2021-08-02 19:24:14] [] -- Connection Checklist [1/2] (Internet Connection Status)
INFO [2021-08-02 19:24:16] [] - Internet Connection Status: ok
INFO [2021-08-02 19:24:16] [] -- Connection Checklist [2/2] (Instagram Server Status)
INFO [2021-08-02 19:24:24] [] - Instagram WebSite Status: Currently Up
INFO [2021-08-02 19:24:24] [] - Instagram Response Time: 108.423 ms
INFO [2021-08-02 19:24:24] [] - Instagram Reponse Code: 200
INFO [2021-08-02 19:24:24] [] - Instagram Server Status: ok
Cookie file not found, creating cookie...
Login A/B test detected! Trying another string...
............................................................................................................................
CRITICAL [2021-08-02 19:24:43] [] Unable to login to Instagram! You will find more information in the logs above.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''我用pip和pip3安装它,当instagram要求接受cookie时,它根本不起作用
发布于 2022-05-10 17:17:41
使用参数want_check_browser=False调用类初始化器对我起作用,如下所示:
session = InstaPy(username="USERNAME", password="PASSWORD", headless_browser=False, want_check_browser=False)然而,这似乎是一个解决办法。
此外,您还可以在0.6.16版本中查看login_util.py第246行,它说,
修补程序-此检查经常崩溃-加上不必要,#我可以验证我自己的连接
发布于 2021-08-02 15:16:53
在xpath_compile.py中
第159行"login_elem_no_such_exception": "//a[text()='Log``` In']",
它需要看起来像这样
第159行"login_elem_no_such_exception": "//button[text()='Log In']",
您可以找到该文件:
Linux上的/usr/local/lib/python3.6/dist-packages/instapy
Windows上的E:\Users\(yourprofile)\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\instapy:
来源:https://github.com/timgrossmann/InstaPy/issues/4877#issuecomment-522282119
https://stackoverflow.com/questions/68623885
复制相似问题