Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated a feature to send email for match received in tinder_bot.py #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tinder_bot.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from selenium import webdriver
from time import sleep
import smtplib

from secrets import username, password

Expand Down Expand Up @@ -62,6 +63,14 @@ def close_popup(self):
def close_match(self):
match_popup = self.driver.find_element_by_xpath('//*[@id="modal-manager-canvas"]/div/div/div[1]/div/div[3]/a')
match_popup.click()
match_msg = "Congratulations you've been matched with someone.Please check your profile for detail"
print(match_msg)
s = smtplib.SMTP('smtp.gmail.com', 587) #opens gmail on "587" port
s.starttls() #For security
s.login("Your Email id", "Your Password") # you can save this in different file also
s.sendmail("Your Email id", "Receiver email id", match_msg)
s.quit()


bot = TinderBot()
bot.login()