Giter Club home page Giter Club logo

youtubewordfinder's Introduction

Youtube-Word-Finder

Searches a specific said word or phrase within all videos of a YouTube Channel.

Utilizes the auto-generated or written subtitles for that purpose.

Installation

Use the package manager pip to install the requirements.

pip install -r requirements.txt

Usage

Run the script wordFinder.py using the following command line arguments.

python3 wordFinder.py "<WORD|PHRASE>" <YT-CHANNEL-ID> <DEPTH>

Stores search result in the results folder. Result files are JSON formatted.

WORD | PHRASE

The said phrase or the word you want to search for in the subtitles.

Make sure to put quotation marks "" around the word or phrase.

YT CHANNEL ID

The channel ID of the YouTube channel you want to search in.

Can be obtained using sites like: https://www.streamweasels.com/tools/youtube-channel-id-and-user-id-convertor/

DEPTH

Defines how many videos should be scanned. The factor is x100.

This means that with a DEPTH of 3 the 300 newest videos on the channel will be scanned for the WORD or PHRASE.

How it works

  1. Gathers all video IDs of the channel until the specified DEPTH and caches them in the id_cache folder for quicker access next time,
  2. Divides the acquired video-id list into chunks for multiprocessing
  3. Goes through every video and downloads the subtitles using the YouTube-Transcript-API, also caches them into the cache folder.
  4. Searches the transcript for the given WORD or PHRASE and returns the timestamp when found
  5. Stores results in the results folder in the JSON format for further use.

Credits

License

GPL v3.0

youtubewordfinder's People

Contributors

oskarkraemer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.