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 files for hulu 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hulu-0.1.0.tar.gz | 3.9 kB | Details |
Release files / hulu-0.1.0.tar.gz
| Download URL | hulu-0.1.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ef32d36c1ea17a564e69d705fbb54883f57af8f9c70b03dc318d10e201292ae
|
|
BLAKE2b-256 checksum How to use checksums |
026d237a04bc64931e0354f6a7a4d9c5575d91f5646e4f6cf5fe5e1a24e18854
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |