Telegram bot for scraping information from social networks and other platforms.
- TikTok
- VK
- Spotify
- Yandex Music
To install and run the bot, follow these steps:
-
Clone this repository:
git clone https://github.com/papayyg/andy-bot.git
-
Navigate into the cloned directory:
cd andy-bot
-
Create a virtual environment:
python -m venv <virtual_environment_name>
-
Activate the virtual environment. Depending on your operating system, the command to activate the environment will differ:
For Windows:
<virtual_environment_name>\Scripts\activate
For Unix or MacOS:
source <virtual_environment_name>/bin/activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a
.env
file in the root directory and specify the following environment variables:BOT_TOKEN=<your_bot_token> TEST_TOKEN=<your_bot_token_for_tests> MONGO_HOST=<your_mongo_uri> INST_SESSION=<instagram session from cookies> log_chat_id=<telegram channel ID for logging> owner_id=<your telegram ID>
-
Run the bot by executing the
bot.py
file:python bot.py
AndyBot is developed using Python 3.9.13.
- aiogram (3.4.1): A Python framework for Telegram bot development.
- MongoDB: A NoSQL database used for data storage.
Bot supports multilingual capabilities. To add support for additional languages, follow these steps:
-
Navigate to the
locales
folder. -
Open the
translations.json
file. -
Add translations for the desired language following the existing format.
Aslan Mammadrzayev - aslan.mamedrzaev@gmail.com