Skip to main content

blip.tv Reader

The goal of this project is to give developers an easy way to access data stored on blip.tv, things like episodes, their enclosures and so on. It is a wrapper around the blip.tv API and encapsulates the formatting and parsing job.

bliptv.reader Package Changes

bliptv.reader version 1.0 (2008/07/27)

  • initial release

Detailed Documentation

Installation

To install it, the best way is to use easy_install:

$ easy_install bliptv.reader

This will download the package and it’s dependencies from PyPI. If you don’t have easy_install installed, you can download it here:

http://peak.telecommunity.com/DevCenter/EasyInstall

Usage

First you need to import it:

>>> from bliptv.reader import Show

Now you can select a show and initialize it. We take COM.lounge TV as an example which can be found at http://comlounge.blip.tv. The showname thus is “comlounge”:

>>> show = Show('comlounge')

We can now select the first page of episodes from it:

>>> page1 = show.episodes.pages[1]

We can also retrieve the next page like that:

>>> page2 = page1.next

And go back to page1 with prev:

>>> page1 = page2.prev

Unfortunately blip.tv does not return the overall amount of episodes so that we can only check next and prev if the return None like this:

>>> page1.prev is None
True

Also note, that the list of episodes is backwards, starting with the most recent episode.

Now we can check the episodes in that page (we can only test existance here because we don’t know the exact names of the episodes as these change all the time):

>>> episode = page1[0]
>>> len(episode.title)>0
True

>>> episode.url.startswith("http://blip.tv/file")
True

Moreover you can access:

rating

The rating of the show, e.g. TV-UN

pureDescription

A plain text version of the description

description

The HTML version of the description

keywords

The tags used as a list

Enclosures

One important part of course are the media files of an episode. These are stored as a dictionary inside the enclosures attribute of an episode:

>>> enclosures = episode.enclosures

The dict is a filetype => Enclosure structure:

>>> enclosure = enclosures['video/x-flv']
>>> enclosure.filetype
'video/x-flv'

>>> enclosure.url.startswith('http://blip.tv/file/get/')
True

>>> enclosure.filesize>0
True

>>> enclosure.height>0
True

>>> enclosure.width>0
True

Download

Metadata

Release files for bliptv.reader 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bliptv.reader 1.0
File Size Uploaded Provenance
bliptv.reader-1.0.tar.gz 4.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bliptv.reader 1.0
File Interpreter ABI Platform
bliptv.reader-1.0-py2.5.egg Legacy Egg format - - Details

Total release size: 13.8 kB

Release files / bliptv.reader-1.0.tar.gz

Download URL bliptv.reader-1.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2dd3f9b3aa60981f11ee95e3f1ae94d4dec02cb3773eeacd9521ebbbe6973782
BLAKE2b-256 checksum
How to use checksums
eb03bdbc6b68baf5b5f500da6f6323157627fd8c71f75795b75a448eac4a33ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / bliptv.reader-1.0-py2.5.egg

Download URL bliptv.reader-1.0-py2.5.egg
Size 9.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
34f257b79ee3f1011ae7844f03f805dd18db4c2cf5f737adb503d4e402f541a4
BLAKE2b-256 checksum
How to use checksums
f9217a004956109870844017e5c2a7862c9b0f5ade3968709f908f66e6000a11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for bliptv.reader 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page