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

Only getting 5 results from search #13

Open
BlindSanji opened this issue Apr 26, 2023 · 1 comment
Open

Only getting 5 results from search #13

BlindSanji opened this issue Apr 26, 2023 · 1 comment

Comments

@BlindSanji
Copy link

No description provided.

@Anomi-Dev
Copy link

Anomi-Dev commented May 7, 2023

In imdb.py, in the section "....method to search on IMDB...."

name = name.replace(" ", "+")
if year is None:
url = f"https://www.imdb.com/find?q={name}"
else:
assert isinstance(year, int)
url = f"https://www.imdb.com/find?q={name}+{year}"

To search for Movies change the to urls to:
url = f"https://www.imdb.com/find?s=tt&q={name}"
url = f"https://www.imdb.com/find?s=tt&q={name}+{year}"

To search for TV Shows change the to urls to:
url = f"https://www.imdb.com/find?s=ep&q={name}"
url = f"https://www.imdb.com/find?s=ep&q={name}+{year}"

To search for Actors/Celebs change the to urls to:
url = f"https://www.imdb.com/find?s=nm&q={name}"
url = f"https://www.imdb.com/find?s=nm&q={name}+{year}"

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

2 participants