An AI-powered application that converts YouTube videos into professional articles and fully responsive websites automatically using Python, LangChain, Google Gemini AI, and Streamlit.
- ✅ Extract YouTube transcripts automatically
- ✅ Convert transcripts into professional Medium/LinkedIn-style articles
- ✅ Remove unnecessary promotional content such as:
- Subscribe messages
- Sponsorships
- Affiliate links
- Channel introductions
- ✅ Generate complete frontend files:
- HTML
- CSS
- JavaScript
- ✅ Create downloadable ZIP website packages
- ✅ Responsive modern UI
- ✅ Dark/Light theme support
- ✅ SEO-friendly webpage generation
- ✅ Intelligent handling of both short and long transcripts
- Python
- Streamlit
- LangChain
- Google Gemini AI
- HTML5
- CSS3
- JavaScript
- YouTube Transcript Loader
project/
│
├── app.py
├── .env
├── requirements.txt
├── index.html
├── style.css
├── script.js
├── website.zip
└── README.mdgit clone https://github.com/your-username/youtube-article-generator.git
cd youtube-article-generatorpython -m venv venvvenv\Scripts\activatesource venv/bin/activatepip install -r requirements.txtCreate a .env file in the root folder:
gemini_key=YOUR_GEMINI_API_KEYstreamlit run app.pyThe application fetches the YouTube transcript using the YouTube Transcript Loader.
Gemini AI transforms the transcript into a professional article by:
- Removing unnecessary promotional content
- Structuring content with headings and lists
- Generating readable technical explanations
The AI automatically generates:
- Responsive HTML
- Modern CSS
- Interactive JavaScript
All generated files are automatically packaged into a downloadable ZIP file.
YouTube URL
↓
Transcript Extraction
↓
AI Summarization
↓
Article Generation
↓
Frontend Code Generation
↓
Website ZIP Download
Add Screenshot Here
Add Screenshot Here
Generated files include:
index.html
style.css
script.js
website.zip- RunnableBranch
- RunnableLambda
- RunnablePassthrough
- Prompt Templates
- Output Parsers
- Summarization Middleware
- Multi-language support
- Blog export to Medium/Dev.to
- PDF article generation
- AI-generated thumbnails
- Voice narration support