Selenium based solution for creating a twitter bot. Selenium is a very powerful tool for web automation and scraping. For making Twitter bot, one can use Twitter api, but its paid. This solution on the other hand is not but does require much more work to get things right.
- Logging into your Twitter account
- Liking tweets of your homepage
- Searching for some keyword or hashtag
- Liking tweets of the search results
- Posting tweets
- Logging out of your account
- Have
python
environment setup - Clone the repo and go to the cloned directory
- Run
pip3 install selenium
- Now you may run any of the given example scripts or write and execute your own scripts
All the following tasks are completely automated without any manual user input. The script launches Firefox instance and carrys out the tasks provided.