Skip to content

calebleung/vods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Channel-based VOD search

A Python app to catalog and search Twitch VODs.

Why

Twitch search doesn't return all games played in the same VOD. That is, a six hour VOD with multiple games played will only be in the search results for the first game played. (Example of missing VODs)

How

Twitch provides an API endpoint which lists when a game is switched to and what the new game is. We push this info into a database and can return it at will. Hooray!

(Unfortunately, there's no endpoint returning stream title changes, so we're omitting titles as they may lead to confusion.)

Installation

  1. pip install -r requirements.txt
  2. Make a copy of config.example and fill in your desired channel_id and client_id.
  3. python init.py
  4. python update.py
  5. FLASK_APP=app.py flask run

* Consider adding a cron to run update.py to add new VODs to the db.

Usage

  • Swiping left/right & arrow keys navigate between pages
  • / focuses the search bar
  • Esc clears (and focuses) the search bar
  • Search uses LIKE %[Query]%

Example

Demo Animation

Demo

About

Channel-based VOD search for Twitch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors