Ali-Hasan-Khan / Scrape-Whoscored-Event-Data

Get match event data from whoscored.com
MIT License
31 stars 10 forks source link

Hidden window #1

Closed sertalpbilal closed 3 years ago

sertalpbilal commented 3 years ago

Hi Ali Hasan, thanks for the useful repository. I have noticed that you are hiding Chrome when minimize_window argument is passed. It might be easier to run Chrome in headless mode, so it stays invisible.

options = webdriver.ChromeOptions()
options.add_argument("--headless")
driver = webdriver.Chrome('chromedriver.exe', options=options)

If you are interested, I can send a pull request.

Ali-Hasan-Khan commented 3 years ago

Thank you. Actually, I have tried using this but unfortunately whoscored uses Imperva technology that can catch headless chrome and block your IP address quite easily.