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'
==================
[![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'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-youtube-api-0.0.2.tar.gz
(13.0 kB
view details)
File details
Details for the file django-youtube-api-0.0.2.tar.gz
.
File metadata
- Download URL: django-youtube-api-0.0.2.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fed0420710548238ee9ebd82b724fce99a4b24d5c8cbca0c09a7759b5f4a96b0 |
|
MD5 | dba67bd1a10751444f4404e096075acd |
|
BLAKE2b-256 | e8dfe803ee596a88eb99c2913bbbe18840e2b9d420900890b66ad88dd0183fba |