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

get_movie_details not working #33

Open
rfeinman opened this issue Jul 27, 2022 · 1 comment
Open

get_movie_details not working #33

rfeinman opened this issue Jul 27, 2022 · 1 comment

Comments

@rfeinman
Copy link

Thanks for this awesome library! I am getting the following error when I run the Movie Details example from the readme. Any idea what's happening?

Code:

from rotten_tomatoes_client import RottenTomatoesClient

result = RottenTomatoesClient.get_movie_details(movie_id=446064253)

Error traceback:

---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
/var/folders/2l/510bgy8104sdl7p1bd9_wx7h0000gn/T/ipykernel_37763/3334208030.py in <module>
      1 from rotten_tomatoes_client import RottenTomatoesClient
      2 
----> 3 result = RottenTomatoesClient.get_movie_details(movie_id=446064253)

~/src/RottenTomatoesClient/rotten_tomatoes_client/client.py in get_movie_details(movie_id)
     47                          .format(movie_details_url=RottenTomatoesClient.MOVIE_DETAILS_URL, movie_id=movie_id))
     48 
---> 49         r.raise_for_status()
     50 
     51         return r.json()

~/opt/anaconda3/envs/default/lib/python3.9/site-packages/requests/models.py in raise_for_status(self)
    958 
    959         if http_error_msg:
--> 960             raise HTTPError(http_error_msg, response=self)
    961 
    962     def close(self):

HTTPError: 404 Client Error: Not Found for url: https://www.rottentomatoes.com/api/private/v1.0/movies/446064253
@kowalcj0
Copy link

@rfeinman
Owners of RT removed support for unauthorised access to their API.
You now have to apply for it and submit a proposal form 🤦‍♂️

Apply for Access
To apply for access to the Rotten Tomatoes API, please submit a proposal form outlining how you would like to use Rotten Tomatoes data. We will review each application to assess whether you are a good candidate based on our updated policies.
https://developer.fandango.com/Rotten_Tomatoes

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