【发布时间】:2019-12-02 22:55:44
【问题描述】:
我很难解决这个错误。尝试 ro 运行一个简单的脚本,如下所示:
from instapy_cli import client
username = "username"
password = "password"
image = "Image.jpg"
description = "This is a test"
with client(username, password) as cli:
cli.upload(image, description)
我收到以下错误:
[IG] not found cookie/cookie_file >> login as default
Error parsing error response: Expecting value: line 1 column 1 (char 0)
Error is >>
Bad Request
Something went bad.
Please retry or send an issue on https://github.com/b3nab/instapy-cli
Traceback (most recent call last):
File "c:/Users/Lucas/Desktop/Python/Proyectos/Insta Automation/Matetemático/Posting Script.py", line 15, in <module>
cli.upload(imagen, text)
File "C:\Users\Lucas\AppData\Roaming\Python\Python37\site-packages\instapy_cli\cli.py", line 153, in upload
raise IOError("Unable to upload.")
OSError: Unable to upload.
【问题讨论】:
-
看看here。看来这个项目已经死了,也许最好 fork 并更新 instagram API,或者只使用 selenium