BrowserHandler
- class aswan.BrowserHandler
Bases:
UrlHandlerBaseAttributes Summary
Methods Summary
handle_driver(driver)runs after get.
is_session_broken(result)exception when getting source
parse(source)start_session(browser)start session if browser is needed
Attributes Documentation
- eager: bool = False
- headless: bool = False
Methods Documentation
- handle_driver(driver: Chrome)
runs after get. if returns something, that is forwarded to parse
- is_session_broken(result: Exception)
exception when getting source
if error occurs during handle browser, it comes here
- parse(source)
- start_session(browser: Chrome)
start session if browser is needed