This repository has been archived by the owner on Jul 18, 2023. It is now read-only.
generated from rin-gil/aiogram-v2-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
598 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,2 @@ | ||
# Paste the bot token here and rename the file to .env | ||
BOT_TOKEN=123456:Your-TokEn_ExaMple | ||
ADMINS=123456,654321 | ||
USE_REDIS=False | ||
|
||
DB_USER=exampleDBUserName | ||
PG_PASSWORD=examplePostgresPass | ||
DB_PASS=exampleDBPassword | ||
DB_NAME=exampleDBName | ||
DB_HOST=127.0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,3 @@ venv/ | |
|
||
# Temp | ||
temp/ | ||
|
||
# Database | ||
*.sqlite3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2022 Ringil | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,68 @@ | ||
## Bot template for 2.12 <= aiogram <3.0 | ||
<p align="center"> | ||
<img src="https://repository-images.githubusercontent.com/571268828/71f20754-3fcd-4833-b968-61b113ab6930" alt="YouTube Shorts Download Bot" width="640"> | ||
</p> | ||
|
||
<p align="center"> | ||
<a href="https://www.python.org/downloads/release/python-3100/"> | ||
<img src="https://img.shields.io/badge/python-v3.10-informational" alt="python version"> | ||
<a href="https://www.python.org/downloads/release/python-3110/"> | ||
<img src="https://img.shields.io/badge/python-v3.11-informational" alt="python version"> | ||
</a> | ||
<a href="https://pypi.org/project/aiogram/2.12/"> | ||
<img src="https://img.shields.io/badge/aiogram-v2.12-informational" alt="aiogram version"> | ||
<a href="https://pypi.org/project/aiogram/2.23.1/"> | ||
<img src="https://img.shields.io/badge/aiogram-v2.23.1-informational" alt="aiogram version"> | ||
</a> | ||
<a href="https://pypi.org/project/environs/9.5.0/"> | ||
<img src="https://img.shields.io/badge/environs-v9.5.0-informational" alt="environs version"> | ||
</a> | ||
<a href="https://pypi.org/project/pytube/12.1.0/"> | ||
<img src="https://img.shields.io/badge/pytube-v12.1.0-informational" alt="pytube version"> | ||
</a> | ||
<a href="https://github.com/psf/black"> | ||
<img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-black.svg"> | ||
</a> | ||
<a href="https://github.com/rin-gil/aiogram_template/actions/workflows/tests.yml"> | ||
<img src="https://github.com/rin-gil/aiogram_template/actions/workflows/tests.yml/badge.svg" alt="Code tests"> | ||
<a href="https://github.com/rin-gil/YouTubeShortsDownloader/actions/workflows/tests.yml"> | ||
<img src="https://github.com/rin-gil/YouTubeShortsDownloader/actions/workflows/tests.yml/badge.svg" alt="Code tests"> | ||
</a> | ||
<a href="https://github.com/rin-gil/aiogram_template/actions/workflows/codeql.yml"> | ||
<img src="https://github.com/rin-gil/aiogram_template/actions/workflows/codeql.yml/badge.svg" alt="Code tests"> | ||
<a href="https://github.com/rin-gil/YouTubeShortsDownloader/actions/workflows/codeql.yml"> | ||
<img src="https://github.com/rin-gil/YouTubeShortsDownloader/actions/workflows/codeql.yml/badge.svg" alt="Code tests"> | ||
</a> | ||
<a href="https://github.com/rin-gil/YouTubeShortsDownloader/blob/master/LICENCE"> | ||
<img src="https://img.shields.io/badge/licence-MIT-success" alt="MIT licence"> | ||
</a> | ||
</p> | ||
|
||
<p align="right"> | ||
<a href="https://github.com/rin-gil/YouTubeShortsDownloader/blob/master/README.ru.md"> | ||
<img src="https://raw.githubusercontent.com/rin-gil/rin-gil/main/assets/img/icons/flags/russia_24x24.png" alt="Ru"> | ||
</a> | ||
<a href="https://github.com/rin-gil/YouTubeShortsDownloader/blob/master/README.ua.md"> | ||
<img src="https://raw.githubusercontent.com/rin-gil/rin-gil/main/assets/img/icons/flags/ukraine_24x24.png" alt="Ua"> | ||
</a> | ||
</p> | ||
|
||
## YouTube Shorts Download Bot | ||
|
||
Bot to download videos from YouTube Shorts. Working version is available here [https://t.me/YouTubeShortsDownloaderBot](https://t.me/YouTubeShortsDownloaderBot) | ||
|
||
### Installing | ||
|
||
``` | ||
git clone https://github.com/rin-gil/YouTubeShortsDownloader.git | ||
cd YouTubeShortsDownloader | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
pip install -r requirements.txt | ||
mv .env.dist .env | ||
``` | ||
|
||
### Setup and launch | ||
|
||
* Register a new bot with [BotFather](https://t.me/BotFather) and copy the obtained token | ||
* Insert the bot token into the .env file | ||
* Running the bot through the bot.py file `python bot.py` | ||
|
||
### Developers | ||
|
||
* [Ringil](https://github.com/rin-gil) | ||
|
||
### License | ||
|
||
YouTubeShortsDownloader is licensed under [MIT](https://github.com/rin-gil/YouTubeShortsDownloader/blob/master/LICENCE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<p align="center"> | ||
<img src="https://repository-images.githubusercontent.com/571268828/71f20754-3fcd-4833-b968-61b113ab6930" alt="YouTube Shorts Download Bot" width="640"> | ||
</p> | ||
|
||
<p align="center"> | ||
<a href="https://www.python.org/downloads/release/python-3110/"> | ||
<img src="https://img.shields.io/badge/python-v3.11-informational" alt="python version"> | ||
</a> | ||
<a href="https://pypi.org/project/aiogram/2.23.1/"> | ||
<img src="https://img.shields.io/badge/aiogram-v2.23.1-informational" alt="aiogram version"> | ||
</a> | ||
<a href="https://pypi.org/project/environs/9.5.0/"> | ||
<img src="https://img.shields.io/badge/environs-v9.5.0-informational" alt="environs version"> | ||
</a> | ||
<a href="https://pypi.org/project/pytube/12.1.0/"> | ||
<img src="https://img.shields.io/badge/pytube-v12.1.0-informational" alt="pytube version"> | ||
</a> | ||
<a href="https://github.com/psf/black"> | ||
<img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-black.svg"> | ||
</a> | ||
<a href="https://github.com/rin-gil/YouTubeShortsDownloader/actions/workflows/tests.yml"> | ||
<img src="https://github.com/rin-gil/YouTubeShortsDownloader/actions/workflows/tests.yml/badge.svg" alt="Code tests"> | ||
</a> | ||
<a href="https://github.com/rin-gil/YouTubeShortsDownloader/actions/workflows/codeql.yml"> | ||
<img src="https://github.com/rin-gil/YouTubeShortsDownloader/actions/workflows/codeql.yml/badge.svg" alt="Code tests"> | ||
</a> | ||
<a href="https://github.com/rin-gil/YouTubeShortsDownloader/blob/master/LICENCE"> | ||
<img src="https://img.shields.io/badge/licence-MIT-success" alt="MIT licence"> | ||
</a> | ||
</p> | ||
|
||
<p align="right"> | ||
<a href="https://github.com/rin-gil/YouTubeShortsDownloader/blob/master/README.md"> | ||
<img src="https://raw.githubusercontent.com/rin-gil/rin-gil/main/assets/img/icons/flags/united-kingdom_24x24.png" alt="En"> | ||
</a> | ||
<a href="https://github.com/rin-gil/YouTubeShortsDownloader/blob/master/README.ua.md"> | ||
<img src="https://raw.githubusercontent.com/rin-gil/rin-gil/main/assets/img/icons/flags/ukraine_24x24.png" alt="Ua"> | ||
</a> | ||
</p> | ||
|
||
## YouTube Shorts Download Bot | ||
|
||
Бот для загрузки видео с YouTube Shorts. Рабочая версия доступна по ссылке [https://t.me/YouTubeShortsDownloaderBot](https://t.me/YouTubeShortsDownloaderBot) | ||
|
||
### Установка | ||
|
||
``` | ||
git clone https://github.com/rin-gil/YouTubeShortsDownloader.git | ||
cd YouTubeShortsDownloader | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
pip install -r requirements.txt | ||
mv .env.dist .env | ||
``` | ||
|
||
### Настройка и запуск | ||
|
||
* Зарегистрируйте нового бота у [BotFather](https://t.me/BotFather) и скопируйте полученный токен | ||
* Вставьте токен бота в файл .env | ||
* Запуск бота через файл bot.py `python bot.py` | ||
|
||
### Разработчики | ||
|
||
* [Ringil](https://github.com/rin-gil) | ||
|
||
### Лицензия | ||
|
||
Проект YouTubeShortsDownloader распространяется по лицензии [MIT](https://github.com/rin-gil/YouTubeShortsDownloader/blob/master/LICENCE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<p align="center"> | ||
<img src="https://repository-images.githubusercontent.com/571268828/71f20754-3fcd-4833-b968-61b113ab6930" alt="YouTube Shorts Download Bot" width="640"> | ||
</p> | ||
|
||
<p align="center"> | ||
<a href="https://www.python.org/downloads/release/python-3110/"> | ||
<img src="https://img.shields.io/badge/python-v3.11-informational" alt="python version"> | ||
</a> | ||
<a href="https://pypi.org/project/aiogram/2.23.1/"> | ||
<img src="https://img.shields.io/badge/aiogram-v2.23.1-informational" alt="aiogram version"> | ||
</a> | ||
<a href="https://pypi.org/project/environs/9.5.0/"> | ||
<img src="https://img.shields.io/badge/environs-v9.5.0-informational" alt="environs version"> | ||
</a> | ||
<a href="https://pypi.org/project/pytube/12.1.0/"> | ||
<img src="https://img.shields.io/badge/pytube-v12.1.0-informational" alt="pytube version"> | ||
</a> | ||
<a href="https://github.com/psf/black"> | ||
<img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-black.svg"> | ||
</a> | ||
<a href="https://github.com/rin-gil/YouTubeShortsDownloader/actions/workflows/tests.yml"> | ||
<img src="https://github.com/rin-gil/YouTubeShortsDownloader/actions/workflows/tests.yml/badge.svg" alt="Code tests"> | ||
</a> | ||
<a href="https://github.com/rin-gil/YouTubeShortsDownloader/actions/workflows/codeql.yml"> | ||
<img src="https://github.com/rin-gil/YouTubeShortsDownloader/actions/workflows/codeql.yml/badge.svg" alt="Code tests"> | ||
</a> | ||
<a href="https://github.com/rin-gil/YouTubeShortsDownloader/blob/master/LICENCE"> | ||
<img src="https://img.shields.io/badge/licence-MIT-success" alt="MIT licence"> | ||
</a> | ||
</p> | ||
|
||
<p align="right"> | ||
<a href="https://github.com/rin-gil/YouTubeShortsDownloader/blob/master/README.md"> | ||
<img src="https://raw.githubusercontent.com/rin-gil/rin-gil/main/assets/img/icons/flags/united-kingdom_24x24.png" alt="En"> | ||
</a> | ||
<a href="https://github.com/rin-gil/YouTubeShortsDownloader/blob/master/README.ru.md"> | ||
<img src="https://raw.githubusercontent.com/rin-gil/rin-gil/main/assets/img/icons/flags/russia_24x24.png" alt="Ru"> | ||
</a> | ||
</p> | ||
|
||
## YouTube Shorts Download Bot | ||
|
||
Бот для завантаження відео з YouTube Shorts. Робоча версія доступна за посиланням [https://t.me/YouTubeShortsDownloaderBot](https://t.me/YouTubeShortsDownloaderBot) | ||
|
||
### Встановлення | ||
|
||
``` | ||
git clone https://github.com/rin-gil/YouTubeShortsDownloader.git | ||
cd YouTubeShortsDownloader | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
pip install -r requirements.txt | ||
mv .env.dist .env | ||
``` | ||
|
||
### Налаштування та запуск | ||
|
||
* Зареєструйте нового бота у [BotFather](https://t.me/BotFather) і скопіюйте отриманий токен | ||
* Вставте токен бота у файл .env | ||
* Запуск бота через файл bot.py `python bot.py` | ||
|
||
### Розробники | ||
|
||
* [Ringil](https://github.com/rin-gil) | ||
|
||
### Ліцензія | ||
|
||
Проект YouTubeShortsDownloader поширюється за ліцензією [MIT](https://github.com/rin-gil/YouTubeShortsDownloader/blob/master/LICENCE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
aiogram>=2.12,<3.0 | ||
aiogram==2.23.1 | ||
environs==9.5.0 | ||
pytube==12.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.