Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

INstagramy doesnt work on a hosted API #28

Closed
OmarSammanKaakajiDM opened this issue May 11, 2022 · 1 comment
Closed

INstagramy doesnt work on a hosted API #28

OmarSammanKaakajiDM opened this issue May 11, 2022 · 1 comment

Comments

@OmarSammanKaakajiDM
Copy link

I am doing an API on flask that gets instagram hashtag posts. My problem is that when I run the flask application locally, it works fine. However when I host it on Azures web service or python anywhere, I keep on getting an internal server error. Has anyone faced this issue?

Error while using instagrammy:

2022-05-11 07:33:07,644: Exception on /api/instaposts [GET]
Traceback (most recent call last):
  File "/home/datamindsetstest/mysite/app.py", line 136, in api_posts
    hashtag = InstagramHashTag(word)
  File "/home/datamindsetstest/.local/lib/python3.9/site-packages/instagramy/InstagramHashTag.py", line 60, in __init__
    tag, data["entry_data"]["TagPage"][0]["graphql"]["hashtag"]
KeyError: 'TagPage'
@yogeshwaran01
Copy link
Owner

Yes It does not work on a server

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants