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 Python library to interact with Hulu's "hidden" 2.0 API.

Project Description

hulu attempts to make it easy for developers to interact with the Hulu “hidden” 2.0 API

The Story

A friend of mine, (@adammagana) created a PHP library (found here) to interact with the Hulu “hidden” 1.0 API. The 1.0 API only returns XML, but someone opened up an issue revealing some 2.0 endpoints that return JSON.

Since JSON is easier to work with in Python than XML is, I took it upon myself to try an open up their API to other developers.

Features

  • List companies that have shows/videos on Hulu
  • List videos from a specific show
  • List trailers available on Hulu
  • Find the position of a given video within the shows video list
  • (Kind of) Much more!

Installation

$ pip install hulu

Example Usage

from hulu import Hulu
h = HuluAPI()
try:
    h.get_companies()
except HuluError as e:
    print e

try:
    h.get_video_info(441295)
except HuluError as e:
    print e

Contribute

If anyone has additional information (such as; paramters taken to given API methods, extra API methods not yet found, etc.) please feel free to open a Pull Request! :)

TODO

  • Figure out authentication!

Some API methods require authentication, yet I haven’t been able to figure out how to authenticate to make those API calls, these API calls include:

api/2.0/plus_upsell.json
api/2.0/favorited_show_ids
api/2.0/queued_video_ids
Release History

Release History

This version
History Node

0.1.0

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
hulu-0.1.0.tar.gz (3.9 kB) Copy SHA256 Checksum SHA256 Source Apr 17, 2013

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