-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from mrgretwon/add_windows_compatibility
Update chromedriver and add windows compatibility
- Loading branch information
Showing
7 changed files
with
21 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
selenium==3.141.0 | ||
gTTS==2.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from selenium import webdriver | ||
import platform | ||
import os | ||
|
||
|
||
def create_driver(): | ||
|
@@ -9,6 +10,8 @@ def create_driver(): | |
path = 'chrome_mac/chromedriver' | ||
elif system == 'Linux': | ||
path = 'chrome_linux/chromedriver' | ||
elif system == 'Windows': | ||
path = os.getcwd() + '\chrome_windows\chromedriver.exe' | ||
else: | ||
raise OSError(f'Operating system {system} is not supported') | ||
|
||
|
@@ -28,8 +31,8 @@ def create_driver(): | |
} | ||
|
||
PLAYER = { | ||
"name": "ndombele", | ||
"cost": 5500, | ||
"name": "Kloster", | ||
"cost": 20000, | ||
} | ||
|
||
EMAIL_CREDENTIALS = { | ||
|
@@ -39,6 +42,4 @@ def create_driver(): | |
|
||
EA_EMAIL = "[email protected]" | ||
|
||
ALLOW_NOTIFICATIONS = False | ||
|
||
INCREASE_COUNT = 20 |