This project enables the downloading of tweets from Twitter that include images or videos.
- Clone the repository.
- Create a
.env
file in the project directory. - Create a bot on Telegram using BOTFATHER.
- Add the following entries to the
.env
file:
TELEGRAM_BOT_TOKEN ='YOUR_TELEGRAM_BOT_TOKEN_FROM_BOTFATHER'
CHANNEL_USERNAME = '@THE USERNAME OF A CHANNEL YOU WANT THE USER TO JOIN INORDER TO USE THE BOT'
- Run 'pip3 install -r requirements.txt' to install required modules.
# FFmpeg is required for this project. Install it with:
# Linux: sudo apt-get install ffmpeg
# macOS: brew install ffmpeg
# Windows: Download from https://ffmpeg.org/download.html
- Run the script to activate the bot.
- Open the newly created bot on Telegram and start it using the
/start
command. - Send the bot a link to download tweets that contain videos or images.
Explore the bot: t.me/formerlytwitterbot
This project is licensed under the MIT License - see the LICENSE file for details.