Closed albertoivo closed 6 years ago
This ought to do the trick.
This code:
import tmdbsimple as tmdb
tmdb.API_KEY = 'YOUR_API_KEY_HERE'
kwargs = {'append_to_response': 'trailers'}
movie = tmdb.Movies(603).info(**kwargs)
result = movie.get('trailers')
print(movie.get('trailers')['youtube'][0]['source'])
outputs:
m8e-FF8MsqU
Hi,
I have the following code:
and the output:
How can I get only the value of the source attribute:
m8e-FF8MsqU
?Thanks in advance!