我正在使用 instapy-0.6.14
代码:
from instapy import InstaPy
import random
from instapy import InstaPy
from instapy import smart_run
#login credentials
insta_username = '****'
insta_password = '****'
#login session
session = InstaPy(username=insta_username, password=insta_password)
session.login()
session.like_by_tags(["#carz"], amount=5)
低于错误
回溯(最后一次调用):文件“E:\Study\Python_Automation\Insta_Commentor\quickstart.py”,第 56 行,在 session.like_by_tags(my_hashtags, amount=90, media=None) 文件“C:\Users\sonu3 \AppData\Local\Programs\Python\Python310\lib\site-packages\instapy\instapy.py",第 1977 行,在 like_by_tags 中不恰当,user_name,is_video,原因,范围 = check_link( 文件 "C:\Users\sonu3\ AppData\Local\Programs\Python\Python310\lib\site-packages\instapy\like_util.py",第 618 行,在 check_link media = post_page[0]["shortcode_media"] KeyError: 0