I just started learning Python and I'm trying to make a code where it asks me to write the name of a movie (using input) and to give me details such as overview, title and the homepage of the movie.
req = requests.get('http://api.themoviedb.org/3/search/query?api_key=###' + nome)
This is not the full code, but only the first def to search for the movie in the collection after the input was made.
I always receive:
{'status_code': 7, 'status_message': 'Invalid API key: You must be granted a valid key.'}.
What i'm doing wrong?
找不到电影或剧集?登录并创建它吧。
Travis Bell 的回复
于 2019 年 05 月 15 日 11:20上午
Hi @PeriloAmbrosio,
That's not a valid search request. You're looking for:
Cheers.
PeriloAmbrosio 的回复
于 2019 年 05 月 20 日 5:20下午
Thanks, Travis!