updating latest
This commit is contained in:
@@ -6,6 +6,7 @@ import emoji
|
||||
import random
|
||||
import json
|
||||
import os
|
||||
from chromedriver_py import binary_path
|
||||
|
||||
|
||||
class getTrafficInfo(object):
|
||||
@@ -69,7 +70,10 @@ class getTrafficInfo(object):
|
||||
options = webdriver.ChromeOptions()
|
||||
options.add_argument('headless')
|
||||
# Start the Chromedriver
|
||||
browser = webdriver.Chrome(options=options)
|
||||
browser = webdriver.Chrome(
|
||||
executable_path=binary_path,
|
||||
options=options,
|
||||
)
|
||||
browser.get(url)
|
||||
return browser
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user