A python module for accessing Netflix REST webservice, both V1 and V2 supports oauth and oob.
pyflix2 is a BSD licensed python module for accessing netflix API (both v1 and v2) Netflix provides REST interfaces to access it’s catalog and various user data. This module exposes easy to use object oriented interfaces that is inteded to make it even easier for python programmers to use.
Installing requests is simple with pip:
$ pip install pyflix2
or, with easy_install:
$ easy_install pyflix2
from pyflix2 import * netflix = NetflixAPIV2( 'appname', 'key', 'shared_secret') movies = netflix.title_autocomplete('Terminator', filter='instant') for title in movies['autocomplete']['title']: print title user = netflix.get_user('use_id', 'access_token', 'access_token_secret') reco = user.get_reccomendations() for movie in reco['recommendations']: print movie['title']['regular']
$ python -mpyflix2 -s 'the matrix' -x
Or see help:
$ python -mpyflix2 -h
Note: I would like to thank Kirsten Jones for the library http://code.google.com/p/pyflix/ As pyflix2 was initially inspired by pyflix.