Skip to main content
Help us improve Python packaging – donate today!

Django implementation for youtube API

Project Description

Django youtube API
==================


[![Build Status](https://travis-ci.org/ramusus/django-youtube-api.png?branch=master)](https://travis-ci.org/ramusus/django-youtube-api) [![Coverage Status](https://coveralls.io/repos/ramusus/django-youtube-api/badge.png?branch=master)](https://coveralls.io/r/ramusus/django-youtube-api)

Application for interacting with youtube API objects using Django model interface

Installation
------------

pip install django-youtube-api

Add into `settings.py` lines:

INSTALLED_APPS = (
...
'youtube_api',
)

Usage examples
--------------

### Get video by ID

>>> from youtube_api.models import Video

>>> video = Video.remote.fetch('BJ80RsAQKqE')[0]
>>> video.title
u'(Officiele Videocl\xedp) Django Wagner - Mooie Blauwe Ogen'

### Search videos by title

>>> videos = Video.remote.search('Django Unchaned Trailer')
>>> len(videos)
50

>>> videos[0]
<Video: Django Unchained - Official Trailer (HD)>

>>> videos[0].video_id
u'eUdM9vrCbow'

Release history Release notifications

This version
History Node

0.0.2

History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-youtube-api-0.0.2.tar.gz (13.0 kB) Copy SHA256 hash SHA256 Source None Sep 9, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page