-
Notifications
You must be signed in to change notification settings - Fork 148
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
BY default, playwright has a timeout of 30 seconds for a lot of its behaviors, including:

You can set 0 to disable timeout for these actions in playwright, referring to Playwright API reference
Current code(line 68, scrape_playwright/hander.py) doesn't work when the value is 0:
self.default_navigation_timeout: Optional[int] = ( crawler.settings.getint("PLAYWRIGHT_DEFAULT_NAVIGATION_TIMEOUT") or None )
As you can see, then PLAYWRIGHT_DEFAULT_NAVIGATION_TIMEOUT is 0, the value of this expression is still None, for
0 or None
is still None in Python.
Rightnow, I just subclass ScrapyPlaywrightDownloadHandler to work around this issue.
Thank you.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working