The WhatsApp Bot is a Python-based application that allows users to download Instagram Reels and YouTube Shorts videos by sharing the respective links with the bot. The bot will retrieve the videos and send them back to the users. It leverages the Instagram and YouTube APIs for fetching video details and the Flask framework for handling HTTP requests.
- Download Instagram Reels videos by sharing the link with the bot.
- Download YouTube Shorts videos by sharing the link with the bot.
- Send the downloaded videos back to the users on WhatsApp.
- Python
- Flask
- WhatsApp Business API
- Instagram API
- YouTube API
-
Clone the repository:
git clone https://github.com/your-username/whatsapp-bot.git cd whatsapp-bot
-
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up the necessary API keys:
- Instagram API key: Obtain an API key from the Facebook Developers website and update the
INSTAGRAM_API_KEY
variable inconfig/api_keys.py
. - YouTube API key: Obtain an API key from the Google Cloud Console and update the
YOUTUBE_API_KEY
variable inconfig/api_keys.py
.
- Instagram API key: Obtain an API key from the Facebook Developers website and update the
-
Start the Flask server:
python main.py
-
Configure the WhatsApp Business API:
- Set up a WhatsApp Business Account and obtain the necessary credentials.
- Follow the documentation of the WhatsApp Business API to configure and integrate it with the bot.
-
Once the server is running and the WhatsApp Business API is configured, you can share Instagram Reels and YouTube Shorts links with the bot on WhatsApp to download the videos.
-
Start the Flask server:
python main.py
-
Connect the WhatsApp Business API to handle incoming messages and send the downloaded videos.
-
Share Instagram Reels and YouTube Shorts links with the bot on WhatsApp to download the videos.