【问题标题】:How to use Like function of instabot module?如何使用 instabot 模块的 Like 功能?
【发布时间】:2021-01-13 03:34:18
【问题描述】:

我想用 instabot 点赞一张图片,但没有点赞,我得到了错误。

我尝试使用不同的并工作

from instabot import Bot

bot = Bot()

bot = Bot(max_likes_per_day=999)
bot.login(username="my_user",password="pass")

get_id_of_link= bot.get_media_id_from_link("https://www.instagram.com/p/CFh766nAVfh/?utm_source=ig_web_copy_link")
like = bot.like(media_id=get_id_of_link)

>>>[outPut] False

【问题讨论】:

    标签: python web-scraping bots instapy


    【解决方案1】:

    我很好奇您为什么要使用 InstaBot 创建 Instagram 机器人,而 InstaPy 是用于自动化 Instagram 的最流行和最高效的 Instagram 库。但是,我阅读了 InstaBot 文档并没有发现类似的方法。相反,我认为你应该使用bot.like_all_exist_media()

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-08-07
      • 1970-01-01
      • 1970-01-01
      • 2018-01-18
      • 1970-01-01
      • 2016-06-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多