This Python script allows users to retrieve details of a YouTube video by providing its URL. The script utilizes the YouTube Data API to fetch information such as video title, tags, and keywords from the video description.
Before using the script, ensure that you have the necessary modules installed:
pip install google-api-python-client
pip3 install google-api-python-client
To use the YouTube Data API, you need to set up an API key. Replace the placeholder in the script with your actual API key. if you do not know how to generate google API Instruction or Official_Site.
# Set your API key here (You should replace this with your actual API key)
API_KEY = 'Your_API_Key_Here'
- Open a command prompt.
- Navigate to the directory containing the script.
- Run the script by entering the following command:
python setup.py
- Open a terminal.
- Navigate to the directory containing the script.
- Firstly give the executable permision and Run the script by entering the following command:
chmod +x setup.py
python3 setup.py
Enter a valid YouTube video URL when prompted.
The script will display the following details of the provided YouTube video:
- Video ID
- Title
- Tags (if available)
- Keywords extracted from the video description (if available)
Note: In case of an invalid YouTube video URL format, an error message will be displayed.
Feel free to use this script to quickly gather information about your favorite YouTube videos!
- Do not use this tool for illegal or unethical purposes.
- This script is intended for educational and legitimate purposes only.
- Ensure compliance with YouTube's terms of service and policies while using this tool.
- The developers of this script are not responsible for any misuse or violation of terms.