Django youtube API
==================
[](https://travis-ci.org/ramusus/django-youtube-api) [](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'
==================
[](https://travis-ci.org/ramusus/django-youtube-api) [](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'
Metadata
Release files for django-youtube-api 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-youtube-api-0.0.2.tar.gz | 13.0 kB | Details |
Release files / django-youtube-api-0.0.2.tar.gz
| Download URL | django-youtube-api-0.0.2.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fed0420710548238ee9ebd82b724fce99a4b24d5c8cbca0c09a7759b5f4a96b0
|
|
BLAKE2b-256 checksum How to use checksums |
e8dfe803ee596a88eb99c2913bbbe18840e2b9d420900890b66ad88dd0183fba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |