Socket
Socket
Sign inDemoInstall

django-youtube-api

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    django-youtube-api

Django implementation for youtube API


Maintainers
1

Readme

Django youtube API

Build Status Coverage Status

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'

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc