-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
48 lines (41 loc) · 1.29 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from scraper import Scraper
from sender import Sender
import sys
import win32api
# guests = 1
# rooms = 1
# checkin = "2024-10-01"
# checkout = "2024-10-07"
# bathrooms = "1"
# travel = "commute"
# maxTravel = "30"
# favourite = "true"
# entireHome= "false"
# budget = 700
# emailTo = "[email protected]"
# emailTo = "[email protected]"
# scraper = Scraper(guests, rooms, checkin, checkout, budget, bathrooms, favourite, entireHome, travel, maxTravel)
# properties = scraper.getProperties()
# scraper.done()
# sender = Sender(properties, emailTo)
# print(f"Accommodation search completed and email sent to {emailTo}!")
def collectInput():
print("Num of arguments = " + str(len(sys.argv)))
guests = sys.argv[1]
rooms = sys.argv[2]
checkin = sys.argv[3]
checkout = sys.argv[4]
budget = sys.argv[5]
bathrooms = sys.argv[6]
favourite = sys.argv[7]
entireHome = sys.argv[8]
travel = sys.argv[9]
maxTravel = sys.argv[10]
frequency = sys.argv[11]
email = sys.argv[12]
return [guests, rooms, checkin, checkout, budget, bathrooms, favourite, entireHome, travel, maxTravel, frequency, email]
if __name__ == '__main__':
variables = collectInput()
# print(variables)
# print("Hello world")
win32api.MessageBox(0, str(variables), 'Variables')