Hi,
I'm beginner with the concept of api.
I'd like to take the name of the director, actor, and the time of the movie by tmdb.
I seen many post about found director but not in python...
Could you help me ?
You need to request your own developer API key in your TMDB API settings. Then if you are looking for an easy and quick way to use our API, you can use some python wrapper library. You can find examples of python code on their github pages.
Using tmdbsimple you can get movie runtime this way:
response = movie.info()
runtime = movie.runtime
In tmdbsimple movie.crew and movie.cast are variables of object movie created after successful calling of function movie.credits(). Similarly, the variable movie.runtime is created after successful calling of function movie.info() (along with other variables like movie.title, movie.release_date and so on). Btw. you can get the same results from dict object returned by functions movie.credits() and movie.info():
Using tmdbsimple you can get movie runtime this way:
response = movie.info()
runtime = movie.runtime
In tmdbsimple movie.crew and movie.cast are variables of object movie created after successful calling of function movie.credits(). Similarly, the variable movie.runtime is created after successful calling of function movie.info() (along with other variables like movie.title, movie.release_date and so on). Btw. you can get the same results from dict object returned by functions movie.credits() and movie.info():
Using tmdbsimple you can get movie runtime this way:
response = movie.info()
runtime = movie.runtime
In tmdbsimple movie.crew and movie.cast are variables of object movie created after successful calling of function movie.credits(). Similarly, the variable movie.runtime is created after successful calling of function movie.info() (along with other variables like movie.title, movie.release_date and so on). Btw. you can get the same results from dict object returned by functions movie.credits() and movie.info():
talestalker 的回复
于 2019 年 09 月 02 日 10:15上午
You need to request your own developer API key in your TMDB API settings. Then if you are looking for an easy and quick way to use our API, you can use some python wrapper library. You can find examples of python code on their github pages.
smooki 的回复
于 2019 年 09 月 02 日 1:01下午
I can have the credit but i don't found the command for take the inforamtion only for director and actor
talestalker 的回复
于 2019 年 09 月 02 日 2:49下午
You have to search for directors in movie.crew manually:
or in less fancy but more readable way:
As for actors, they are stored in movie.cast:
smooki 的回复
于 2019 年 09 月 02 日 3:11下午
Thank you very much ! Two question: and for the film's duration ? What's meaning .crew ?
talestalker 的回复
于 2019 年 09 月 02 日 3:25下午
Using tmdbsimple you can get movie runtime this way:
In tmdbsimple movie.crew and movie.cast are variables of object movie created after successful calling of function movie.credits(). Similarly, the variable movie.runtime is created after successful calling of function movie.info() (along with other variables like movie.title, movie.release_date and so on). Btw. you can get the same results from dict object returned by functions movie.credits() and movie.info():
is the same as
smooki 的回复
于 2019 年 09 月 02 日 3:29下午
Okay, thank you for your support
talestalker 的回复
于 2019 年 09 月 02 日 3:32下午
np
tmdb41926221 的回复
于 2021 年 09 月 20 日 3:44下午
Could you please help me in getting this using JavaScript? Issue is some movie have director in credits and some do not. Help !!
talestalker 的回复
于 2021 年 09 月 21 日 2:48上午
Sorry, I can help you with a python only. Try to look for some general advice on https://stackoverflow.com/
esmaoruc 的回复
于 2024 年 03 月 13 日 1:57下午
java????
esmaoruc 的回复
于 2024 年 03 月 13 日 1:58下午
java??