简体   繁体   English

如何使用instabot模块的Like功能?

[英]How to use Like function of instabot module?

I want to use instabot to like an image but there is no like happen I get false.我想使用 instabot 来喜欢一个图像,但没有像我错误的那样发生。

I tried to use unlike and worked我尝试使用不同的并且工作

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

I'm curious why are you using InstaBot for creating Instagram bot while InstaPy is the most popular and efficient Instagram library for automating Instagram.我很好奇你为什么使用 InstaBot 来创建 Instagram 机器人,而 InstaPy 是最流行和最高效的 Instagram 自动化 Instagram 库。 however, I read InstaBot documents and found no like method.然而,我阅读了 InstaBot 的文档,并没有发现类似的方法。 instead, I reckon you should use bot.like_all_exist_media() .相反,我认为您应该使用bot.like_all_exist_media()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM