This repository has been archived by the owner on Oct 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Home
dbr edited this page Sep 13, 2010
·
3 revisions
An Python interface to http://www.themoviedb.org/ – intended to be simple and sensible to use
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 = results0 >>> first_film >>> 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’- JakeWharton / thebdmt – “Community-driven, user-editable movie and TV show torrent indexing site. Created to demonstrate Polyreviki, pyy, and PyCache.”