An awesome bot to jumpstart your trending tweets!
Explore the docs »
·
Report Bug
·
Request Feature
Table of Contents
This twitter bot is developed for following a specific person/user acouunt and retweet all the tweets of his/her timeline. Initial Purpose was the mass trending in twitter about Myanmar current situations. However, the project is not super user-friendly yet. I am looking for contributors who can make gui apps, improve code, make new features, fix known issues etc...
- Python 3.9
sudo apt-get update
sudo apt-get install python 3.9
sudo apt-get install python3-pip
-
Get a free twitter API Key at https://developer.twitter.com/en
-
Clone the repo
git clone https://github.com/waihankan/twitter-bot.git
-
Install pip packages
pip install -r requirements.txt
-
Enter your API in
config.py
Make a
config.py
file if it doesn't existapi_key="your_api" api_secret="your_api_secret" access_token="your_access_token" token_secret="your_token_secret"
Here is how to use the code as of latest source code.
-
Run the file
main.py
in the terminal. -
You have to fill in the twitter api if you use the code for the first time.You can take a look at the demo images provided below.
-
Rerun the file
main.py
in the terminal. -
This time the twitter bot window will pop up.
-
- Add the user_id, which is @user_id in the twitter profile.
- Add the number of retweets you want to retweet from that user.
-
Click Start! and check the process in terminal.
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Donate Me -> @Wai Han