Skip to content

Commit

Permalink
Closes HenryAlbu#24
Browse files Browse the repository at this point in the history
- Added webdrive-manager to get the chromedriver, no need
to install chromedriver seperately
- Added webdrive-manager==3.7.0 to requirements.txt
  • Loading branch information
baskpann committed Jun 12, 2022
1 parent 3bcad20 commit 90cf9ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
selenium==3.141.0
PySimpleGUI==4.19.0
webdriver-manager==3.7.0
8 changes: 4 additions & 4 deletions spammer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from time import sleep
Expand All @@ -9,10 +10,9 @@ def start_spam():

# Checks if on Mac or Windows
print("Opening Chrome")
if platform.system() == "Windows":
driver = webdriver.Chrome('chromedriver.exe')
else:
driver = webdriver.Chrome()

# This will get the proper chromedriver. No need to install chromedriver seperately.
driver = webdriver.Chrome(ChromeDriverManager().install())

# Loggin into selected platform
print("Starting Log in....")
Expand Down

0 comments on commit 90cf9ae

Please sign in to comment.