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

Python 如何使用instabot模块的Like功能?,python,web-scraping,bots,instapy,Python,Web Scraping,Bots,Instapy,我想使用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.instag

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

我很好奇为什么你要用InstaBot来创建Instagram bot,而InstaPy是最受欢迎和最高效的Instagram库,用于自动化Instagram。但是,我阅读了InstaBot文档,没有发现类似的方法。相反,我认为你应该使用
bot.like\u all\u exist\u media()