Hello and welcome to Twitter_Bot. This is one of many projects that was built to show mastery in OOP with Ruby. It was built with Ruby using selenium web-driver library.
Twitter_bot is an app that helps you put your name out there to get more traffic to your profile and also tweaks twitter's recommendation algorithm so you get more meaningful or related tweets of interest to keep you up to date fast.
It logs into your account, searches for a particular topic of interest, gives you time to read the tweets and likes them afterwards. All by itselft. It skips tweets already liked by you. If you are too busy to check twitter then Twitter_Bot is perfect for you. Read tweets and stay up to date while you code or do something else. The app opens a browser instance, but you can choose to run it with a headless browser.
- Opens the navigator (recommended: Chrome or Firefox) *can also run in the background
- Logs into your twitter account
- Handles search queries
- Likes tweets
Below are the steps you have to follow to get twitter_bot up and running.
You will need to create and account, that's if you don't already have one. Be careful not to push code with confidential information to github.
- This twitter bot is built with Ruby so you need to have it installed.
- You will need to install Firefox and Firefox driver(gecko driver) or Chrome and Chrome's driver. Do not forget to put the driver in your PATH after download. /usr/local/bin for Linux and Mac systems.
mv chromedriver /usr/local/bin
- clone this repository and install all necessarry dependencies.
git clone https://github.com/ClintonEnyinna/twitter_bot.git && cd twitter_bot
- Install dependencies.
bundle install- Start the app.
ruby bin/twitter_bot.rb- Follow the interactive console interface instructions to fill in your login credentials, browser customization, what you want to search for and how much content you want the bot to like.
- Do not forget to download the browser's respective drivers
- Simply follow the interactive console
- The app was made to only work on Firefox and Chrome.
- Ruby version: ruby 2.6.5p114
- Ruby - Programming language used
- Firefox - Web browser
- Gecko driver - Firefox web driver
- Selenium web-driver - Library to automate web based activities
- VS Code - The code editor used
- Ubuntu - Operating System
🏠 Homepage
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.
👤 Clinton Enyinna
- Twitter: @enyinnaclinton
- Github: @ClintonEnyinna