mirror of
https://github.com/harismuneer/Ultimate-Facebook-Scraper
synced 2024-11-10 06:04:17 +00:00
removed the chromedriver dependancy
This commit is contained in:
parent
76d87a3cdb
commit
84e5b5b929
3 changed files with 3 additions and 5 deletions
Binary file not shown.
Binary file not shown.
|
@ -599,13 +599,11 @@ def login(email, password):
|
|||
|
||||
# Code to disable notifications pop up of Chrome Browser
|
||||
options.add_argument("--disable-notifications")
|
||||
options.add_argument("--disable-infobars")
|
||||
options.add_argument("--mute-audio")
|
||||
# options.add_argument("headless")
|
||||
|
||||
# initialization
|
||||
if platform.system() != "Windows":
|
||||
driver = webdriver.Chrome(executable_path=os.getcwd() + "/chromedriver", chrome_options=options)
|
||||
else:
|
||||
driver = webdriver.Chrome(executable_path=os.getcwd() + "/chromedriver.exe", chrome_options=options)
|
||||
driver = webdriver.Chrome(chrome_options=options)
|
||||
|
||||
driver.get("https://en-gb.facebook.com")
|
||||
driver.maximize_window()
|
||||
|
|
Loading…
Reference in a new issue