GitHub Repository: TubeSage
Before running TubeSage, ensure you have the following installed on your system:
- Python 3.8 or later
- pip (Python package manager)
Open a terminal and run:
git clone https://github.com/itselliott/TubeSage.git
cd TubeSageInstall the required Python libraries:
pip install -r requirements.txt- Go to OpenAI's API Page: OpenAI API Keys
- Sign in or create an account.
- Click “Create API Key” and copy the generated key.
- Do not share your key – it is private and linked to your OpenAI account.
- Go to Google Cloud Console: Google Cloud Console
- Create a new project or select an existing one.
- Enable the YouTube Data API v3:
- Navigate to the API Library.
- Search for YouTube Data API v3 and click Enable.
- Generate an API Key:
- Go to Credentials > Click Create Credentials > Select API Key.
- Copy the generated key.
You need to set up a .env file to store your API keys securely.
- Create a
.envfile in the root directory:touch .env
- Open
.envin a text editor and add:ReplaceOPENAI_API_KEY=your_openai_api_key_here YOUTUBE_API_KEY=your_youtube_api_key_hereyour_openai_api_key_hereandyour_youtube_api_key_herewith your actual API keys.
Once everything is set up, start the app by running:
python main.pyThis will launch the TubeSage GUI, allowing you to analyze YouTube videos.
- If you get an API key missing error, ensure your
.envfile is correctly formatted and saved. - If dependencies are missing, try:
pip install -r requirements.txt
- If the app crashes, restart your terminal and run:
python main.py
Now you can set up TubeSage independently and start analyzing YouTube videos.