Skip to main content

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 and then install

pip install django-ytindex django
  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 = {
          'api_key':'AIzaSyCrGGcnVjY8AV7XWSHEIco3TDw4qobkh1w',
          'jrei': {
              'channel_id': 'UCzQUP1qoWDoEbmsQxvdjxgQ',
              'line_size': 12,
              '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. (Put this in crontab)

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

Metadata

Release files for django-ytindex 0.1.67

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-ytindex 0.1.67
File Size Uploaded
django-ytindex-0.1.67.tar.gz 7.2 kB Details

Release files / django-ytindex-0.1.67.tar.gz

Download URL django-ytindex-0.1.67.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
167f56b1daca0a934462be19755fbb0f4e2f8f5df2281f49c8e8b24a82b55228
BLAKE2b-256 checksum
How to use checksums
2b5d46f66ecdb50df65b243411e071038e97264c66428e53d3984a68c0d70ddf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.67 This release

1 release file

0.1.66

1 release file

0.1.65

1 release file

0.1.61

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page