Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No results from API #10

Open
eavildosola opened this issue Apr 19, 2023 · 3 comments
Open

No results from API #10

eavildosola opened this issue Apr 19, 2023 · 3 comments

Comments

@eavildosola
Copy link

Hi I'm using this API and different endpoint such as imdb.get_by_name('House Of The Dragon', tv=True) , or imdb.get_by_id("tt12593682") and I have always the result below:

{"status": 404, "message": "No Result Found!", "result_count": 0, "results": []}

I have installed sucessfully and followed all the steps..

@thisguyshouldworkforus
Copy link

I am having the same issue on pages that exist:

IMDB_SEARCH_ID = json.loads(imdb.search('tt13610512', tv=True))
print(IMDB_SEARCH_ID)

{'result_count': 0, 'results': []}

and this is the page: https://www.imdb.com/title/tt13610512/

@itsmehemant7
Copy link
Owner

The module picks data from structured data. I have seen a few results on IMDB with wrong-structured data. So the reason behind no output is the wrong/unparsable structred json/ld data of imdb.

@samarthdave
Copy link

samarthdave commented Aug 3, 2023

adding to what @itsmehemant7 said:

I'm getting the same error so I've been using imdb.search(...) instead of imdb.get_by_id('tt1517268') where tt1517268 is Barbie (2023)

current use case: sending IMDB movies/tv shows to a Notion database. Anyways, I've isolated one way to find which media works and doesn't: if it has a trailer video. I think this suggests there's something about the page that just loads different metadata which this library can parse.

Oppenheimer and Mission Impossible

imdb.get_by_id('tt15398776') doesn't load Oppenheimer

{'status': 404, 'message': 'No Result Found!', 'result_count': 0, 'results': []}

but imdb.get_by_id('tt9603212') shows the Mission Impossible content

I could dig into the differences on the page and try to make get_by_id() more resilient but right now, I'm just copying the content manually or using imdb.search()

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

No branches or pull requests

4 participants