InstaPy / InstaPy

📷 Instagram Bot - Tool for automated Instagram interactions
GNU General Public License v3.0
16.85k stars 3.77k forks source link

getattr(session, job) & like_by_locations & check_link #6229

Closed vitguld closed 3 years ago

vitguld commented 3 years ago

Hey,

Setting up InstaPy with one of the quickstart_templates e.g. good_commenting_strategy_and_new_qs_system.

The bot crashes when it’s about to like a post and shows the following error:

Traceback (most recent call last): File "C:\Users\Windows 10\Desktop\InstagramBot\bot.py", line 141, in <module> getattr(session, job['functionName'])(**arguments) File "C:\Users\Windows 10\Desktop\InstagramBot\env\lib\site-packages\instapy\instapy.py", line 1516, in like_by_locations inappropriate, user_name, is_video, reason, scope = check_link( File "C:\Users\Windows 10\Desktop\InstagramBot\env\lib\site-packages\instapy\like_util.py", line 633, in check_link media = post_page[0]["shortcode_media"] KeyError: 0

Any idea what might cause this?

schealex commented 3 years ago

Already fixed. Please search before opening issues.

vitguld commented 3 years ago

@schealex Hello, sorry if I’m missing something, I have updated InstaPy using the following pip install Instapy -U and the problem still exists. Am I doing something wrong?

schealex commented 3 years ago

follow these instructions on how to update to current but not jet released version: https://instapy.org/additional-information#-install-or-update-to-the-unreleased-version

vitguld commented 3 years ago

@schealex Thanks friend, closing the issue.