Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Import requests (to download the page)
- import requests
- # Import Time (to add a delay between the times the scape runs)
- import time
- # Import smtplib (to allow us to email)
- import smtplib
- print("Ok")
- def sendnotif(subject,text):
- msg = 'Subject: {}\n\n{}'.format(subject, text)
- fromaddr = 'yourlaundryupdates@gmail.com'
- toaddrs = 'nekoofkuroness@gmail.com'
- server = smtplib.SMTP('smtp.gmail.com', 587)
- server.ehlo()
- server.starttls()
- server.login("yourlaundryupdates@gmail.com", "gokoururi420")
- server.sendmail(fromaddr, toaddrs, msg)
- server.quit()
- subject=""
- text=""
- sendnotif(subject,text)
- print("Ok")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement