Advertisement
Guest User

selenium

a guest
Feb 24th, 2020
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. from selenium import webdriver
  2. from shutil import which
  3.  
  4. # Todo: add path to chromedriver
  5. # chrome_path = which('scrapy')
  6.  
  7. chrome_options = webdriver.ChromeOptions()
  8. chrome_options.add_experimental_option("excludeSwitches", ['--enable-automation'])
  9.  
  10.  
  11. driver = webdriver.Chrome(executable_path='./chromedriver',options=chrome_options)
  12. driver.get('https://super.walmart.com.mx/despensa/cereales-y-barras/barras-de-cereal/_/N-ej9kc5')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement