Spaces:
Running
Running
Update scraper.py
Browse files- scraper.py +3 -0
scraper.py
CHANGED
@@ -9,6 +9,9 @@ def scrape_website(website):
|
|
9 |
chrome_driver_path = "/usr/bin/chromedriver"
|
10 |
options = webdriver.ChromeOptions()
|
11 |
driver = webdriver.Chrome(service=Service(chrome_driver_path, options=options))
|
|
|
|
|
|
|
12 |
|
13 |
|
14 |
try:
|
|
|
9 |
chrome_driver_path = "/usr/bin/chromedriver"
|
10 |
options = webdriver.ChromeOptions()
|
11 |
driver = webdriver.Chrome(service=Service(chrome_driver_path, options=options))
|
12 |
+
|
13 |
+
options.add_argument("--user-data-dir=/tmp/chrome-user-data")
|
14 |
+
|
15 |
|
16 |
|
17 |
try:
|