InstaPy / InstaPy/instapy-quickstart

KeyError: 'media'

Open
#100 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
777
Forks
763
PR merge metrics
No merged PRs in 30d

Description

Instapy will start, and when it finds the first post to comment, I get this issue:

" File "/Library/Python/2.7/site-packages/instapy/instapy.py", line 1756, in like_by_tags
self.logger)
File "/Library/Python/2.7/site-packages/instapy/like_util.py", line 560, in check_link
media = post_page[0]['media']
KeyError: 'media'
logout
"

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with like_util.py at check_link line 560 and the like_by_tags call in instapy.py at line 1756. Reproduce the failure on the first post and inspect post_page[0] when the media key is missing. Done means like_by_tags can process the post without raising this KeyError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.