kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Adding Env var "WEBDRIVER_DELAY_BEFORE_CONTENT_READY" to wait n seconds before extracting the text from the browser
rodzic
eb3dca3805
commit
5214a7e0f3
|
@ -120,7 +120,7 @@ class html_webdriver(Fetcher):
|
|||
# raise EmptyReply(url=url, status_code=r.status_code)
|
||||
|
||||
# @todo - dom wait loaded?
|
||||
time.sleep(5)
|
||||
time.sleep(os.getenv("WEBDRIVER_DELAY_BEFORE_CONTENT_READY", 5))
|
||||
self.content = driver.page_source
|
||||
self.headers = {}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue