Spaces:
Paused
Paused
Update scraper.py
Browse files- scraper.py +3 -1
scraper.py
CHANGED
|
@@ -8,9 +8,11 @@ def scrape_website(website):
|
|
| 8 |
|
| 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 |
|
|
|
|
| 8 |
|
| 9 |
chrome_driver_path = "/usr/bin/chromedriver"
|
| 10 |
options = webdriver.ChromeOptions()
|
| 11 |
+
user_data_dir = tempfile.mkdtemp()
|
| 12 |
+
options.add_argument("--user-data-dir=/tmp/chrome-user-data")
|
| 13 |
driver = webdriver.Chrome(service=Service(chrome_driver_path, options=options))
|
| 14 |
+
user_data_dir = tempfile.mkdtemp()
|
| 15 |
|
|
|
|
| 16 |
|
| 17 |
|
| 18 |
|