django-youtube-thumbnail

Quickly pull the highest resolution thumbnail image available for a YouTube video.


License
BSD-3-Clause
Install
pip install django-youtube-thumbnail==1.0.1

Documentation

django-youtube-thumbnail

Quickly pull the highest resolution thumbnail image available for a YouTube video.

Build Status Latest Version

Quick start

  1. Install the package from pypi:

    pip install django-youtube-thumbnail
  2. Add "youtube_thumbnail" your INSTALLED_APPS:

    INSTALLED_APPS = (
        ...
        'youtube_thumbnail',
    )
  3. Use the provided template tag to get the thumbnail

{% load youtube_thumbnail %}
<img src="{% youtube_thumbnail_url 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' %}">

Cache

If you have the django cache enabled, thumbnail results will be cached to avoid unnecessary lookups.