https://github.com/ramusus/django-youtube-api
Django implementation for youtube API
https://github.com/ramusus/django-youtube-api
Last synced: 7 months ago
JSON representation
Django implementation for youtube API
- Host: GitHub
- URL: https://github.com/ramusus/django-youtube-api
- Owner: ramusus
- License: bsd-3-clause
- Created: 2015-09-09T19:43:56.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-12T21:28:59.000Z (almost 11 years ago)
- Last Synced: 2025-10-02T15:25:42.301Z (10 months ago)
- Language: Python
- Size: 156 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Django youtube API
==================
[](http://badge.fury.io/py/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',
)
YOUTUBE_API_ACCESS_KEY = '....'
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]
>>> videos[0].video_id
u'eUdM9vrCbow'