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 ?
Etkö löydä elokuvaa tai TV-ohjelmaa? Kirjaudu sisään lisätäksesi se.
Haluatko pisteyttää vai lisätä tämän nimikkeen listaan?
Ei rekisteröitynyt jäsen?
Vastaus käyttäjältä talestalker
2 syyskuu 2019 klo 10:15AM
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.
Vastaus käyttäjältä smooki
2 syyskuu 2019 klo 1:01PM
I can have the credit but i don't found the command for take the inforamtion only for director and actor
Vastaus käyttäjältä talestalker
2 syyskuu 2019 klo 2:49PM
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:
Vastaus käyttäjältä smooki
2 syyskuu 2019 klo 3:11PM
Thank you very much ! Two question: and for the film's duration ? What's meaning .crew ?
Vastaus käyttäjältä talestalker
2 syyskuu 2019 klo 3:25PM
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
Vastaus käyttäjältä smooki
2 syyskuu 2019 klo 3:29PM
Okay, thank you for your support
Vastaus käyttäjältä talestalker
2 syyskuu 2019 klo 3:32PM
np
Vastaus käyttäjältä tmdb41926221
20 syyskuu 2021 klo 3:44PM
Could you please help me in getting this using JavaScript? Issue is some movie have director in credits and some do not. Help !!
Vastaus käyttäjältä talestalker
21 syyskuu 2021 klo 2:48AM
Sorry, I can help you with a python only. Try to look for some general advice on https://stackoverflow.com/
Vastaus käyttäjältä esmaoruc
13 maaliskuu 2024 klo 1:57PM
java????
Vastaus käyttäjältä esmaoruc
13 maaliskuu 2024 klo 1:58PM
java??