An extension that lets you search for words in a youtube video, and seeks to that timestamp
- Once you go on a youtube video, a request is sent to the server to get a transcript of the video
- The server returns a dictionary where each word is mapped to a list of timestamps where that word occurs
- As the user presses the shortcut option/alt + f, a search bar is opened
- As user begins types a word and presses enter, the youtube video is forwared/seeks to the timestamp at whichever index the user is currently on
- Demo on https://moizahmedd.github.io/youtubesearch
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 offTest going away from youtube, going to home page etc
git clone https://github.com/MoizAhmedd/youtube-video-search.git
to your local machinechrome://extensions
in Chrome and Turn on Developer Mode- Select Load Unpacked and navigate to the
youtube-video-search
directory
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
- Remove preposition words from the mapping (words like "of", "as", "on")
- Add support for full phrases
- Add option to download transcript with the searched words highlighted
- Add support for videos that only have auto-generated captions
- Show search bar on full screen/theater mode