如何解决如何使用Python在Instagram上发布图片
我想使用python在instagram上发布图片,但我不知道该怎么做。 提前致谢。 我这样做
但这是失败的
from instapy_cli import client
def post_instagram():
capture()
username = 's'
password = ''
image = 'photo.png'
speak("what is the caption?")
caption = command()
text = "nice"
with client(username,password) as cli:
cli.upload(image,text)
解决方法
删除 capture()和 caption = command(),您的代码可以正常工作。像这样
from instapy_cli import client
username = ' YOUR USERNAME'
password = 'YOUR PASSWORD'
image = 'image.jpg'
text = "nice"
with client(username,password) as cli:
cli.upload(image,text)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。