【问题标题】:How to post a picture on instagram using python如何使用python在Instagram上发布图片
【发布时间】:2020-08-22 11:07:56
【问题描述】:

我想使用 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)

【问题讨论】:

    标签: python selenium automation scrapy instapy


    【解决方案1】:

    删除 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)
    
    

    【讨论】:

    • 我认为 insta_pi 不再受支持
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-19
    相关资源
    最近更新 更多