Skip to main content

Django app for managing a searchable index of Youtube videos

Project description

# ytindex

ytindex is a Django app for managing a searchable index of Youtube videos and their captions. The app relies on Elasticsearch for the indexing and searching. The app has no admin, no models and only provides one restful endpoint for making queries.

To use

Install Elasticsearch

pip install django-ytindex

  1. Add “ytindex” to your INSTALLED_APPS:

    INSTALLED_APPS = [
        ...
        'ytindex',
    ]
  2. Include the ytindex URLconf in your project urls.py:

    path('yti/', include('ytindex.urls')),
  3. Define the channel id of the Youtube channel you want to index and the Elasticsearch config you want to use:

    YTCI_SETTINGS = {
        'default':'jrei',
        'jrei': {
            'channel_id': 'UCzQUP1qoWDoEbmsQxvdjxgQ',
            'elastic': {
                'index': 'jre-index',
                'dtype': 'jrei-episode',
                'es_host': 'localhost:9200'
            }
        }
    }
  4. Run:

    ./manage index_latest [index name eg. jrei]

    to index the latest videos on the channel

  5. Run the dev server and visit http://127.0.0.1:8000/yti/jrei/elk to search the index.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-ytindex-0.1.1.tar.gz (6.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page