-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSETTINGS.py
39 lines (30 loc) · 1.19 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
"""
------------------------------------------------------------------------
SwitchSnatcher.py settings
------------------------------------------------------------------------
Author: bb $kreetz
Email: [email protected]
__updated__ = "2020-04-12"
------------------------------------------------------------------------
"""
from platform import system
import time
import sys
def get_platform():
platforms = {
'linux1': 'linux',
'linux2': 'linux',
'darwin': 'mac',
'win32': 'win'
}
return platforms[sys.platform]
OS = get_platform()
REFRESH_PERIOD = 1.5 # How often to refresh websites (seconds) | Type: float
ALERT_SOUND = 'air_horn.wav'
BROWSER = 'chrome' # Options: chrome (currently only chrome supported)| Type: str
BROWSER_VERSION = 81 # Options: 80, 81 | Type: int | Go to chrome://settings/help to see browser version
HEADLESS = False # If you start getting 'Unable to locate element' errors, change headless to False
# Auto-purchase Settings
# Please read the README.md file for steps to set this up...
# Automatic purchasing does not work yet, will update soon!
# AMZN_AUTOMATION = (False, False, False) # (add to cart, proceed to checkout, pay)