Coder Social home page Coder Social logo

erykdarnowski / check-yt-title-for-str Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 16 KB

Simple script that goes through YT links from a file and checks if any of the video's title contains a specified string.

License: GNU General Public License v3.0

Python 100.00%
python python3 search youtube yt ytshorts

check-yt-title-for-str's Introduction

Check YT title for str

Simple script that goes through YT links from a file and checks if any of the video's title contains a specified string.

Setup

  • Unix
     # 1. Create virtual env:
     python3 -m venv venv
     
     # 2. Activate virtual env:
     source venv/bin/activate 
     
     # 3. Install required pkgs:
     pip install -r requirements.txt
  • Windows
     # 1. Create virtual env:
     python3 -m venv venv
     
     # 2. Activate virtual env:
     .\venv\Scripts\activate 
     
     # 3. Install required pkgs:
     pip install -r requirements.txt

Usage

  1. Create an input.txt file with links to YouTube videos / shorts separated by new line:

    https://www.youtube.com/watch?v=r6tH55syq0o
    https://www.youtube.com/shorts/qol2X_8JF9I
    https://www.youtube.com/watch?v=BPadRwJbylY
    
  2. Open script.py and enter the string you're searching for in the string_to_check_for variable:

    string_to_check_for = "changing"
  3. Run the script:

    python3 script.py
  4. After the progress bar finishes (don't worry it will stop for a few seconds every 15 requests) you can open the output.txt file and easily search it for the videos that either do or don't include the string you're interested in their title (it's True for those that do and False for those that don't)

    *In vim: g!/True/d / g!/False/d

check-yt-title-for-str's People

Contributors

erykdarnowski avatar

Watchers

 avatar  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.