0

Running InstaPy 0.6.16 on Python 3.10.10, I can get connected and like posts but when the bot tries to comment, it crashes with with error :

Traceback (most recent call last):
  File "/Users/robin/quickstart.py", line 26, in <module>
    session.like_by_tags(['promenade'], amount=1)
  File "/Users/robin/bot-insta-env/lib/python3.10/site-packages/instapy/instapy.py", line 2056, in like_by_tags
    success = process_comments(
  File "/Users/robin/bot-insta-env/lib/python3.10/site-packages/instapy/comment_util.py", line 445, in process_comments
    commented_image, message = verify_commented_image(browser, link, owner, logger)
  File "/Users/robin/bot-insta-env/lib/python3.10/site-packages/instapy/comment_util.py", line 366, in verify_commented_image
    data = getMediaData("edge_media_to_parent_comment", browser)
  File "/Users/robin/bot-insta-env/lib/python3.10/site-packages/instapy/util.py", line 523, in getMediaData
    data = additional_data["graphql"]["shortcode_media"]
KeyError: 'graphql'

Any idea to solve that ?

I tried to modify the utily.py file without success...

Robz
  • 11
  • 2

0 Answers0