Advertisement
alperiox

Untitled

Dec 28th, 2022 (edited)
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. # for timing calculations and sleeping the scraper
  2. import time
  3.  
  4. # import the Selenium
  5. from selenium import webdriver
  6. from selenium.webdriver.chrome.service import Service
  7. from selenium.webdriver.common.by import By
  8. # web driver manager: https://github.com/SergeyPirogov/webdriver_manager
  9. # will help us automatically download the web driver binaries
  10. # then we can use `Service` to manage the web driver's state.
  11. from webdriver_manager.chrome import ChromeDriverManager
  12.  
  13. options = webdriver.ChromeOptions()
  14. options.headless = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement