Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -14,10 +14,8 @@ def scrape_data(amazon_url):
|
|
| 14 |
# service = Service(executable_path='chromedriver')
|
| 15 |
chrome_options = Options()
|
| 16 |
chrome_options.add_argument('--headless')
|
| 17 |
-
chrome_options.add_argument('--no-sandbox')
|
| 18 |
-
chrome_options.add_argument('--disable-dev-shm-usage')
|
| 19 |
|
| 20 |
-
chromedriver_autoinstaller.install(path='google-chrome-stable_current_amd64.deb')
|
| 21 |
driver = webdriver.Chrome(options=chrome_options)
|
| 22 |
|
| 23 |
driver.get(amazon_url)
|
|
|
|
| 14 |
# service = Service(executable_path='chromedriver')
|
| 15 |
chrome_options = Options()
|
| 16 |
chrome_options.add_argument('--headless')
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
# chromedriver_autoinstaller.install(path='google-chrome-stable_current_amd64.deb')
|
| 19 |
driver = webdriver.Chrome(options=chrome_options)
|
| 20 |
|
| 21 |
driver.get(amazon_url)
|