TrendTags is a real-time tag generator powered by YouTube trends, built with Flask and a clean, responsive frontend.
- 🔥 Real-time tag generation from YouTube trending videos
- 🪄 One-click “copy all tags” functionality
- 📱 Clean, responsive, and modern interface
- ⚡ Fast Flask-powered backend
- 🛡️ Auto-updating tag database
- 👨💻 Python linting, CodeQL security scanning via GitHub Actions
- Python >=3.12
- A YouTube API key (get one from Google Cloud Console)
-
Clone the repository and navigate to it:
git clone https://github.com/imDarshanGK/TrendTags.git cd TrendTags -
Create a
.envfile:cp .env.example .env nano .env # Add your actual API keysEdit
.envand set your keys:# SECURITY WARNING! # 1. Rename this to .env # 2. Never commit real keys # 3. Get keys from Google Cloud Console YOUTUBE_API_KEY=your_key_here RAPIDAPI_KEY=your_key_here
-
Install dependencies:
pip install -r requirements.txt
-
Run the application:
python app.py
- Enter your video topic (e.g., "cooking", "tech reviews")
- Select the number of tags (10–30)
- Click "Generate Tags"
- Copy tags with a single click
TrendTags/
├── .github/ # CI/CD workflows
│ └── workflows/ # GitHub Actions
├── static/ # Frontend assets
│ ├── css/ # Stylesheets
│ └── js/ # JavaScript
├── templates/ # HTML templates
├── tests/ # Pytest tests
├── src/ # Source code
│ ├── config.py # Configuration
│ └── ... # Other modules
├── app.py # Main Flask application
├── requirements.txt # Python dependencies
├── LICENSE # MIT License
└── README.md # This filePython code style and tests:
flake8 src tests app.py
black --check src tests app.py
pytestTrendTags uses CodeQL for code scanning via GitHub Actions. You can view “Code scanning results” and security alerts in the Security tab of your repository.
We welcome contributions! Please see our CONTRIBUTING.md for:
- How to report issues
- Code style guidelines
- Pull request process
- Commit message standards
This project is licensed under the MIT License. See the LICENSE file for details.