I'm getting below error while looping through https://api.themoviedb.org/3/movie/{movie_id}
('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
my code:
for movie_id in range(0, 1000):
movie_url = f"https://api.themoviedb.org/3/movie/{movie_id}?language=en-US"
response = requests.get(movie_url, headers=headers)
Am i missing something?
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?