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 ?
Ne možete pronaći film ili TV seriju? prijavite se da biste ga napravili.
Want to rate or add this item to a list?
Not a member?
Odgovorio talestalker
dana 2 rujan 2019 u 10:15 AM
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.
Odgovorio smooki
dana 2 rujan 2019 u 1:01 PM
I can have the credit but i don't found the command for take the inforamtion only for director and actor
Odgovorio talestalker
dana 2 rujan 2019 u 2:49 PM
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:
Odgovorio smooki
dana 2 rujan 2019 u 3:11 PM
Thank you very much ! Two question: and for the film's duration ? What's meaning .crew ?
Odgovorio talestalker
dana 2 rujan 2019 u 3:25 PM
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
Odgovorio smooki
dana 2 rujan 2019 u 3:29 PM
Okay, thank you for your support
Odgovorio talestalker
dana 2 rujan 2019 u 3:32 PM
np
Odgovorio tmdb41926221
dana 20 rujan 2021 u 3:44 PM
Could you please help me in getting this using JavaScript? Issue is some movie have director in credits and some do not. Help !!
Odgovorio talestalker
dana 21 rujan 2021 u 2:48 AM
Sorry, I can help you with a python only. Try to look for some general advice on https://stackoverflow.com/
Odgovorio esmaoruc
dana 13 ožujak 2024 u 1:57 PM
java????
Odgovorio esmaoruc
dana 13 ožujak 2024 u 1:58 PM
java??