Skip to content

whoibrar/Selenium-Twitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Selenium-twitter-automation

This is a Selenium based python project that automates liking tweets via Chrome Driver

Functions || What it does:

  • login() : Log in into your account
  • like_homepage() : Like tweets in hompage
  • like_by_hastag() : Like tweets in hashtag
  • like_user_posts() : Like tweets of a user
  • like_a_list() : Like tweets from a twitter list
  • logout() : Log out of your account

Variables:

  • post_to_like = no of posts to like in each iteration
  • wait_like = seconds to wait before liking next post
  • user = username of the twitter profile to like the posts of
  • wait_pageload = seconds to wait for page to load
  • list_link = link to any twitter list
  • chromedriver = path to the chromedriver
  • hastag='hastag to search for

To Run project :

  • Have python environment setup
  • Clone the repo and go to the cloned directory
  • Run pip install selenium
  • Have chrome Driver installed Link
  • Check the Variables, change values as required

Log in Credentials:

  • There are two ways to get the credentials via Environment Variables or Hardcode in credentials
  • For better security use Environment variables.
  • For windows
    • Start>system>Advanced System Settings>Environment Variables>New
  • For Mac and linux
  • And if you like living on the edge just paste your id and password in credentials file

About

Twitter Automation Using Selinium

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages