Skip to content

Commit

Permalink
cleaning some unused codes
Browse files Browse the repository at this point in the history
  • Loading branch information
ghalidouga committed Aug 12, 2019
1 parent a3f0f01 commit 99a10fd
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions TwitterBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ def login(self):
password.send_keys(self.password)
password.send_keys(Keys.RETURN)
password.perform()
# email = bot.find_element_by_class_name('email-input')
# password = bot.find_element_by_name('session[password]')
# email.clear()
# password.clear()
# email.send_keys(self.username)
# password.send_keys(self.password)
# password.send_keys(Keys.RETURN)
time.sleep(3)

def like_tweet(self,topic):
Expand All @@ -52,18 +45,13 @@ def like_tweet(self,topic):
retweet.send_keys('t')
retweet.send_keys(Keys.RETURN)
retweet.perform()
# time.sleep(1)
# like.send_keys('l')
# like.perform()




if likeTweet == 'YES':
like.send_keys('l')
like.perform()

if retweetTweet == 'YES' and likeTweet == 'YES':
print (n, ' likes + retweets completed')
print (n, ' likes and retweets completed')
n = n + 1

if retweetTweet == 'YES' and likeTweet == 'NO':
Expand All @@ -75,20 +63,7 @@ def like_tweet(self,topic):
n = n + 1

time.sleep(delay)
# elif likeTweet == True and retweetTweet == False:
# like.send_keys('l')
# like.perform()
# time.sleep(1)
# print (n, ' likes completed')
# n = n + 1
# time.sleep(delay)
# elif likeTweet == False and retweetTweet == True:
# retweet.send_keys('t')
# retweet.send_keys(Keys.RETURN)
# retweet.perform()
# print (n, ' retweets completed')
# n = n + 1
# time.sleep(delay)




Expand Down

0 comments on commit 99a10fd

Please sign in to comment.