[python] Selenium Scrapper
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
- from selenium import webdriver
- from selenium.webdriver.chrome.options import Options
- from selenium.webdriver.support.ui import WebDriverWait
- from selenium.webdriver.support import expected_conditions as EC
- from selenium.webdriver.common.by import By
- from fake_useragent import UserAgent
- options = webdriver.ChromeOptions()
- options.headless = False
- options.add_argument("--no-sandbox")
- options.add_argument('--ignore-certificate-errors')
- options.add_argument('--ignore-certificate-errors-spki-list')
- options.add_argument('--ignore-ssl-errors')
- options.add_argument("--disable-gpu")
- driver = webdriver.Chrome(options=options, executable_path="./chromedriver")
- driver.get("https://www.aussar.es/cpu-am4-ryzen/amd-ryzen-5-5600x-box-37ghz.html")
- WebDriverWait(driver, 2000).until(EC.visibility_of_element_located(
- (By.ID, "js-product-list")))
- #name = driver.find_elements(By.CLASS_NAME, "h1 product-detail-name")
- driver.quit()
Editor
You can edit this paste and save as new: