Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A simple python wrapper for the Netflix Roulette API

Project Description

This is a simple python wrapper for the Netflix Roulette API.

Installation

Pip

  • pip install netflix_roulette

From Source

  • git clone git@github.com:tizz98/netflix_roulette.git
  • cd netflix_roulette
  • python setup.py install

Usage

Simple Query

>>> import netflix_roulette
>>> media = netflix_roulette.NetflixMedia('Attack on titan')
>>> media
<NetflixMedia(title='Attack on titan', year='None')>
>>> media.show_id
70299043
>>> media.summary
u'For over a century, people have been living behind barricades to block out the giant Titans that threaten to destroy the human race. When a Titan destroys his hometown, young Eren Yeager becomes determined to fight back.'
>>> media.is_on_netflix
True
>>> media.get_readable_mediatype()
'TV Show'

Query with year

>>> import netflix_roulette
>>> media = netflix_roulette.NetflixMedia('The Boondocks', year=2005)
>>> media
<NetflixMedia(title='The Boondocks', year='2005')>
>>> media.show_id
70153391
>>> media.summary
u'Based on the comic strip by Aaron McGruder, this satirical animated series follows the socially conscious misadventures of Huey Freeman, a preternaturally smart 10-year-old who relocates from inner-city Chicago to the suburbs.'
>>> media.is_on_netflix
True
>>> media.get_readable_mediatype()
'TV Show'

class NetflixMedia

Parameters

  • title: Title of the media you are searching for.
  • year: (Optional) Year of the media you are searching for.

Attributes

  • title: User supplied title of the media you are searching for.
  • year: User supplied year of the media you are searching for.
  • rating: How high the media is rated, max is 5.
  • poster: The poster for the media, right from the Netflix CDN.
  • mediatype: 0 means movie, 1 means TV Show. See also get_readable_mediatype().
  • release_year: The media’s release date.
  • show_cast: The cast of a given title.
  • category: A title’s given category.
  • summary: A plot summary.
  • director: The name(s) of the director(s) of a given title.
  • show_id: The Netflix id of the title.
  • is_on_netflix: A boolean, whether or not the show is on Netflix.

Methods

  • get_readable_mediatype(): Returns TV Show or Movie instead of 1 or 0.
  • is_movie(): Returns True if the media is a Movie.
  • is_tv_show(): Returns True if the media is a TV Show.

class NetflixDirector

Parameters

  • name: Name of the director you are searching for.

Attributes

  • name: User supplied name.
  • media: List of NetflixMedia that the person has directed.

class NetflixActor

Parameters

  • name: Name of the actor you are searching for.

Attributes

  • name: User supplied name.
  • media: List of NetflixMedia that the person has been in.
Release History

Release History

This version
History Node

0.23

History Node

0.22

History Node

0.16

History Node

0.15

History Node

0.14

History Node

0.13

History Node

0.2.1

History Node

0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
netflix_roulette-0.23.tar.gz (17.0 kB) Copy SHA256 Checksum SHA256 Source Dec 26, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting