-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
24 lines (22 loc) · 768 Bytes
/
main.py
File metadata and controls
24 lines (22 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import PriceTracker as pt
import time
# Insert the Amazon Link and header (User-Agent) to Track
# For more info lookup the README
urls = []
with open("data.txt","r") as f:
for line in f.readlines():
urls.append(line.rstrip("\n"))
header = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"}
my_email = ""
my_password = ""
recievers_email = ""
for url in urls:
price = float(url.split(" ")[1])
data = {"URL":url,\
"Header":header,\
"PriceThreshold":price,\
"Email":my_email,\
"Password":my_password,\
"Reciever":recievers_email}
tracker = pt.tracker(data)
tracker.checkPrice()