Python IMDB client using the IMDB json web service made available for their iOS app.
Project description
# ImdbPie
Python IMDB client using the IMDB json web service made available for their iOS app.
## How To Use
### Create an instance of ImdbPie
imdb = Imdb() imdb = Imdb({‘anonymize’ : True}) # to proxy requests
### Search for a movie by title
imdb.find_by_title(“The Dark Knight”) => [{‘title’ : “The Dark Knight”, ‘year’ : “2008”, ‘imdb_id’ : “tt0468569”}, {‘title’ : “Batman Unmasked”, …}]
### Find a movie by its imdb_id
movie = imdb.find_movie_by_id(“tt0468569”)
movie.title => “The Dark Knight” movie.rating => 8.1 movie.certification => “PG-13”
### Find a movie trailer poster
movie = imdb.find_movie_by_id(“tt1210166”) movie.trailer_url => “http://ia.media-imdb.com/images/M/MV5BODM1NDMxMTI3M15BMl5BanBnXkFtZTcwMDAzODY1Ng@@._V1_.jpg”
### Find the top 250 movies ever
imdb.top_250() => [{‘title’: ‘The Shawshank Redemption’, ‘year’: ‘1994’, ‘type’: ‘feature’, ‘rating’: 9.3,…}, …]
### Get the current popular shows
imdb.popular_shows() => [{‘title’ : “Glee”, ‘year’ : “2009”, ‘imdb_id’ => “tt1327801”}, {‘title’ : “Dexter”, …}]
### Check if a movie exists, by imdb id
imdb.movie_exists(‘tt1327801’) => True
### Check an imdb id is of valid format (tt0000000), and try to fix if not
imdb.validate_id(‘tt1000’) => tt0001000
## Requirements
Python 2.7
Python requests - python-requests.org
## Tests
Test .py files can be found in /tests, run these to ensure ImdbPie is working 100%.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file imdbpie-1.1.tar.gz
.
File metadata
- Download URL: imdbpie-1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c78cf8a3555422dbfbde9160142f5b8f262b2fe4fe080498bdbb1d3983c6ea2a |
|
MD5 | a8f9357455cf4ee8e9d75cce6a603aa7 |
|
BLAKE2b-256 | 2c1bcf427c9403d1e76a6e6c7268f1a7d8bf66770cd74ac3b4006ad66b6822ef |