Skip to content

A bot that interacts with Tweets, using Selenium and GeckoDriver

Notifications You must be signed in to change notification settings

KostaSav/TwitterBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

TwitterBot

A twitter bot with python using the selenium library and GeckoDriver.
Using a keyword, the bot uses it to perform a search on Twitter and interacts with the results(tweets). For the moment, it likes and retweets these tweets.

Based on Dev Ed's video tutorial.
(the tutorial code is not entirely functional any more, because of Twitter's changes in their DOM tree)

Installation

  • geckodriver
    Extract executable in C://Users//{username}//AppData//Local//Programs//Python//Python{version}
  • Use the package manager pip to install Selenium.
pip install selenium

Bugs

  • if a tweet is already liked, an exception is thrown and a message is printed, but it does not break
  • ATTENTION: if Twitter detects suspicious activity after many login attempts, login fails but no exception is thrown, the bot tries (unsuccessfully) to like/retweet without an account
  • again, if a tweet is already liked, the bot might like a comment instead
  • even if the sign in is unsuccessful, the program still searches the given word and tries to like tweets

TODO

  1. like
  2. retweet
  3. comment
  4. follow
  5. ChromeDriver

About

A bot that interacts with Tweets, using Selenium and GeckoDriver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages