-
Notifications
You must be signed in to change notification settings - Fork 7
/
settings.py
50 lines (33 loc) · 1.92 KB
/
settings.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
49
50
SITE_NAME = 'https://google.com/flights'
FROM_PLACE = 'SFO'
TO_PLACE = 'BLR'
DEPARTURE_FROM_US = 'August 2'
DEPARTURE_FROM_INDIA = 'July 2'
CLICK_FROM = '//*[@id="root"]/div[3]/table/tbody/tr[2]/td/table/tbody/tr/td[2]/div/div/div[1]/div[5]/table/tbody/tr[' \
'1]/td[1]/div'
FROM = '//*[@id="root"]/div[3]/table/tbody/tr[2]/td/table/tbody/tr/td[2]/div/div/div[1]/div[5]/table/tbody/tr[1]/td[' \
'1]/div/input'
CLICK_TO = '//*[@id="root"]/div[3]/table/tbody/tr[2]/td/table/tbody/tr/td[2]/div/div/div[1]/div[5]/table/tbody/tr[' \
'1]/td[2]/div'
TO = '//*[@id="root"]/div[3]/table/tbody/tr[2]/td/table/tbody/tr/td[2]/div/div/div[1]/div[5]/table/tbody/tr[1]/td[' \
'2]/div/input'
CLICK_ORIGIN_DEPARTURE = '//*[@id="root"]/div[3]/table/tbody/tr[2]/td/table/tbody/tr/td[2]/div/div/div[1]/div[' \
'5]/table/tbody/tr[2]/td[1]/div'
ENTER_ORIGIN_DEPARTURE_DATE = '//*[@id="root"]/div[3]/table/tbody/tr[2]/td/table/tbody/tr/td[2]/div/div/div[1]/div[' \
'5]/table/tbody/tr[2]/td[1]/div/div[1]/div[2]/input'
CLICK_DESTINATION_DEPARTURE = '//*[@id="root"]/div[3]/table/tbody/tr[2]/td/table/tbody/tr/td[2]/div/div/div[1]/div[' \
'5]/table/tbody/tr[2]/td[2]/div'
ENTER_DESTINATION_DEPARTURE_DATE = '//*[@id="root"]/div[3]/table/tbody/tr[2]/td/table/tbody/tr/td[2]/div/div/div[' \
'1]/div[5]/table/tbody/tr[2]/td[2]/div/div[1]/div[2]/input'
CLICK_FLEXIBLE_DATES = '/html/body/div[3]/div/div/div[1]/div[2]'
BASE_PATH = <PATH_WHERE_YOU_WANT_TO_SAVE_SCREENSHOT_AND_TEXT_FILE_TO>
FLIGHT_DETAILS = '//*[@id="root"]/div[3]/table/tbody/tr[2]/td/table/tbody/tr/td[2]/div/div/div[3]/div[1]/div/div[' \
'2]/div[2]/div[1]/div['
# Send Slack message for every 45 minutes
SLEEP_INTERVAL = 45 * 60
SLACK_CHANNEL = '#flight_dates'
try:
from private import *
TOKEN_FOR_SLACK = SLACK_TOKEN
except Exception:
pass