mirror of
https://github.com/MoizAhmedd/youtube-video-search.git
synced 2021-07-26 20:45:06 +03:00
c05bf41d92f36641fa94f817b624036ecc02391d
Youtube Word Search
An extension that lets you search for words in a youtube video, and seeks to that timestamp
How it will work
- Once you go on a youtube video, I will need to have a transcript of the video
- Using some shortcut, will open a search bar somewhere around the video where you can search for words
- As you write a word, it will show you the number of times it appears in the video(transcript)
- As you press enter, the video will seek to the timestamp
Todo
Determine when you're on a videoGet transcript of video given the video IDWrite a function that will given a word and transcript get a list of timestampsWrite a function that will seek a youtube video to a timestampSearchbar + enter + shortcut logicReset transcript/search on new vidsSwitch to indices starting at 1Option F to toggle search bar off- Test going away from youtube, going to home page etc
Development Usage
Client (extension)
git clone https://github.com/MoizAhmedd/youtube-video-search.gitto your local machinechrome://extensionsin Chrome and Turn on Developer Mode- Select Load Unpacked and navigate to the
youtube-video-searchdirectory
Server
pip install -r requirements.txt- Install youtube-dl, tutorial here https://github.com/ytdl-org/youtube-dl
- Change the endpoint in background.js to http://localhost:5000
- Run server:
python app.py
Possible Pull Requests
- Remove preposition words from the mapping (words like "of", "as", "on")
Description
Languages
JavaScript
69.5%
Python
15.9%
CSS
8.8%
Shell
5.8%