小编Had*_*H2o的帖子

使用 instagrapi 发送帖子

您好,我正在尝试使用模块将帖子发送到 Instagram instagrapi,并且我经常photo_upload这样做,但我的代码在这里不起作用:

from instagrapi import Client

print("im gonna log in")
cl = Client()
cl.login("UserName", "Password")

cl.photo_upload("picture.png", "hello this is a test from instagrapi")
Run Code Online (Sandbox Code Playgroud)

但我收到此错误:

Traceback (most recent call last):   File "E:\HadiH2o\Documents\_MyProjects\Python\Test\Test.py", line 10, in <module>   File "C:\Users\HadiH2o\AppData\Local\Programs\Python\Python39\lib\site-packages\instagrapi\mixins\photo.py", line 205, in photo_upload
    upload_id, width, height = self.photo_rupload(path, upload_id)   File "C:\Users\HadiH2o\AppData\Local\Programs\Python\Python39\lib\site-packages\instagrapi\mixins\photo.py", line 170, in photo_rupload
    raise PhotoNotUpload(response.text, response=response, **last_json) instagrapi.exceptions.PhotoNotUpload: {"debug_info":{"retriable":false,"type":"ProcessingFailedError","message":"Request processing failed"}}
Run Code Online (Sandbox Code Playgroud)

请帮助!

python photo-upload instagram

2
推荐指数
1
解决办法
1888
查看次数

标签 统计

instagram ×1

photo-upload ×1

python ×1