This Python script allows you to fetch all uploaded videos from a specific YouTube channel and export the video titles and URLs to a CSV file. It features a simple graphical user interface (GUI) built with Tkinter.
- Fetch all uploaded videos from a YouTube channel
- Export video titles and links to a CSV file
- User-friendly GUI for easy interaction
- Python 3.x
- Required libraries:
requests
tkinter
(comes pre-installed with Python)
You can install requests
using:
pip install requests
- Go to the Google Cloud Console.
- Create a new project.
- Enable the YouTube Data API v3.
- Go to APIs & Services > Credentials.
- Click Create Credentials > API Key.
- Copy your API key and replace
YOUR_YOUTUBE_API_KEY
in the script.
- For channels with
/channel/
in the URL:- Example:
https://www.youtube.com/channel/UC_x5XG1OV2P6uZZ5FSM9Ttw
- Channel ID:
UC_x5XG1OV2P6uZZ5FSM9Ttw
- Example:
- For channels with custom names (
/@username
):- Right-click > View Page Source > Search
channelId
.
- Right-click > View Page Source > Search
- Replace
YOUR_YOUTUBE_API_KEY
with your actual API key in the script. - Run the script:
python youtube_channel_import.py
- Enter the YouTube Channel ID in the GUI.
- Click "Fetch Videos and Save to CSV".
- Choose the destination to save the CSV file.
The CSV file will contain:
- Title: The title of the video
- URL: The direct link to the video
Feel free to fork the repository, make changes, and submit pull requests.
This project is licensed under the MIT License.