我最近安装了python InstagramAPI,我尝试将图像发布到我的帐户,当我运行程序时,会显示它。
请求返回429错误!
登录成功!请求返回400错误!
图片没有发布。我的代码如下,有人可以提供任何建议/帮助/替代代码吗?
#import imageio
#imageio.plugins.ffmpeg.download()
from InstagramAPI import InstagramAPI
user,pwd = 'testUser', 'iStillThinkPasswordIsTheBestPassword'
InstagramAPI = InstagramAPI(user,pwd)
InstagramAPI.login() # login
photo_path ='C:/Users/ted67/Important/Untitled.png'
caption = "Testing web automation. Don't mind this."
InstagramAPI.uploadPhoto(photo_path, caption = caption)