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.
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-ytindex-0.1.67.tar.gz | 7.2 kB | Without provenance | Details for django-ytindex-0.1.67.tar.gz |
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
|
Security for django-ytindex 0.1.67
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.