diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | main.py | 10 |
2 files changed, 9 insertions, 3 deletions
@@ -1 +1,3 @@ venv/ +email.txt +pass.txt @@ -2,6 +2,7 @@ import requests import smtplib import json import time +import sys import schedule def price(): @@ -21,9 +22,12 @@ def price(): return btc_price def email(btc): - sender_email = "your mail address" - sender_password = "password" - receiver_email = "receiving email" + # change the email address or create a email.txt file and put your email there + sender_email = open('email.txt', 'r') + # do the same with password + sender_password = open('pass.txt', 'r') + # change your email to something else the alert will be send to there + receiver_email = "biswa@dmc.chat" subject = "BTC Price Alert" body = f"The current price of BTC is {btc} USD. Time to make a move!" |