Skip to content

Do you have a list of youtube channels in a variety of formats? This app will convert them all to find their handles and put them in a comma seperated list.

Notifications You must be signed in to change notification settings

tjcooney/youtube-handle-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

YouTube Handle Extractor

This Python script extracts YouTube handles from a list of YouTube channel URLs. It handles various URL formats such as @handles, usernames, channel IDs, and more. The script scrapes the page when necessary to retrieve the correct YouTube handle.

Features

  • Extracts YouTube handles from multiple URL formats.
  • Automatically scrapes the YouTube page if the handle is not directly available in the URL.
  • Returns a comma-separated list of YouTube handles.

Requirements

To run this script, you'll need to install the necessary Python packages listed in the requirements.txt file.

Prerequisites

  • Python 3.x
  • pip (Python package installer)

Installing Dependencies

  1. Clone the repository:

    git clone https://github.com/yourusername/youtube-handle-extractor.git
    cd youtube-handle-extractor
  2. Install the required packages:

    pip install -r requirements.txt

Usage

  1. Modify the URL List:

    Update the channel_urls variable in the script with your own list of YouTube channel URLs. The URLs should be comma-separated.

    Example:

    channel_urls = "https://www.youtube.com/@handle,https://www.youtube.com/user/username,https://www.youtube.com/c/username,https://www.youtube.com/channel/UC_CHANNEL_ID"
    
  2. Run the Script:

    After setting up your URLs, run the script:

    python youtube_handle_extractor.py
  3. View the Results:

    The script will output a comma-separated list of YouTube handles extracted from the provided URLs.

    Example output:

    handle1,handle2,handle3
    

Logging

The script uses Python's built-in logging to provide detailed information about the process. If a handle cannot be found for a URL, a message will be printed to the console.

Contributing

If you'd like to contribute to this project, feel free to fork the repository and submit a pull request.

License

This project is licensed under the MIT License.

About

Do you have a list of youtube channels in a variety of formats? This app will convert them all to find their handles and put them in a comma seperated list.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages