Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aigptcode/yds-youtube-downloader-and-summerize
This is a Telegram bot that can download audio from YouTube videos and summarize the content using OpenAI's GPT-3 engine. It's a handy tool for quickly extracting insights from YouTube content.
https://github.com/aigptcode/yds-youtube-downloader-and-summerize
ai api bot code gpt gpt-4 hacking kali openai openai-api python telegram telegram-bot telegram-bot-api windows windows-desktop youtube
Last synced: 2 months ago
JSON representation
This is a Telegram bot that can download audio from YouTube videos and summarize the content using OpenAI's GPT-3 engine. It's a handy tool for quickly extracting insights from YouTube content.
- Host: GitHub
- URL: https://github.com/aigptcode/yds-youtube-downloader-and-summerize
- Owner: AiGptCode
- Created: 2023-10-15T00:49:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-24T21:26:02.000Z (10 months ago)
- Last Synced: 2024-03-24T22:28:49.440Z (10 months ago)
- Topics: ai, api, bot, code, gpt, gpt-4, hacking, kali, openai, openai-api, python, telegram, telegram-bot, telegram-bot-api, windows, windows-desktop, youtube
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# YOUTUBE DOWNLOADER AND SUMMERIZE
# Telegram YouTube Audio Summarizer Bot
This is a Telegram bot that can download audio from YouTube videos and summarize the content using OpenAI's GPT-3 engine. It's a handy tool for quickly extracting insights from YouTube content.
## PrerequisitesBefore using the bot, make sure you have the following prerequisites:
- Python 3.7 or higher
- python-telegram-bot library
- pytube library
- moviepy library
- openai library
- An OpenAI API keyYou can install the required Python libraries by running:
```bash
pip install -r requirements.txt
```## Getting Started
1. Clone this repository to your local machine.
2. Set up your OpenAI API key by replacing `'YOUR_OPENAI_API_KEY'` in the code with your actual API key.
3. Create a bot on Telegram and get your TELEGRAM_API_KEY. You can follow the [Telegram BotFather](https://core.telegram.org/bots#botfather) guide to create a bot and obtain the API key.
4. Set your TELEGRAM_API_KEY by replacing `'YOUR_TELEGRAM_API_KEY'` in the code with your actual API key.
5. Run the bot:
```bash
python Yts full.py
```6. Start a chat with your bot on Telegram and send it a YouTube link. It will download the video, extract the audio, and provide a summary of the content.
## Usage
- Send a YouTube link to the bot.
- The bot will download the video, extract audio, and summarize the content using OpenAI's GPT-3 engine.
- Enjoy quick insights from YouTube videos!## Customization
You can customize the bot's behavior by modifying the code. For example, you can adjust the summarization length by changing the `max_tokens` in the `openaiHandler` function.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Acknowledgments
- Thanks to the developers of the Telegram Bot API, pytube, moviepy, and OpenAI for their fantastic libraries.