Skip to content
This repository has been archived by the owner on Oct 3, 2021. It is now read-only.
dbr edited this page Sep 13, 2010 · 3 revisions

What is it?

An Python interface to http://www.themoviedb.org/ – intended to be simple and sensible to use

Docs?

Docstrings. It’s a single file, and about 160 lines in total. Basic usage is..


import tmdb
search_results = tmdb.search("the films name")

Example session:


>>> import tmdb
>>> results = tmdb.search("fight club")
>>> first_film = results[0]
>>> first_film
<Movie: Fight Club>
>>> first_film.keys()
['popularity', 'title', 'url', 'poster', 'alternative_title', 'short_overview', 'score', 'imdb', 'release', 'type', 'id', 'backdrop']
>>> first_film['title']
'Fight Club'
>>> first_film['backdrop']
<Backdrop with sizes 'mid', 'original', 'thumb'>
>>> first_film['backdrop'].keys()
['thumb', 'original', 'mid']
>>> first_film['backdrop']['original']
'http://images.themoviedb.org/backdrops/5780/tt0137523.jpg'

API utilisers

  • JakeWharton / thebdmt – “Community-driven, user-editable movie and TV show torrent indexing site. Created to demonstrate Polyreviki, pyy, and PyCache.”
Clone this wiki locally