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 and then install
pip install django-ytindex django
-
Add "ytindex" to your INSTALLED_APPS
INSTALLED_APPS = [ ... 'ytindex', ]
-
Include the ytindex URLconf in your project urls.py
path('yti/', include('ytindex.urls')),
-
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' } } }
-
Run
./manage index_latest [index name eg. jrei]
to index the latest videos on the channel. (Put this in crontab)
-
Run the dev server and visit http://127.0.0.1:8000/yti/jrei/elk to search the index.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-ytindex-0.1.67.tar.gz
.
File metadata
- Download URL: django-ytindex-0.1.67.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 167f56b1daca0a934462be19755fbb0f4e2f8f5df2281f49c8e8b24a82b55228 |
|
MD5 | 5580c189705b6e65f3618d408279ab18 |
|
BLAKE2b-256 | 2b5d46f66ecdb50df65b243411e071038e97264c66428e53d3984a68c0d70ddf |