Engines utils - Navigation functions
- Adding doc strings and type annotations stuff. - Making error messages more detailed. - Renaming the `construct_websocket_url` function for more clarity.
This commit is contained in:
@@ -10,7 +10,7 @@ from scrapling.engines.toolbelt import (
|
||||
intercept_route,
|
||||
generate_headers,
|
||||
check_type_validity,
|
||||
construct_websocket_url,
|
||||
construct_cdp_url,
|
||||
generate_convincing_referer,
|
||||
)
|
||||
|
||||
@@ -95,7 +95,7 @@ class PlaywrightEngine:
|
||||
'config': json.dumps(query),
|
||||
# 'token': ''
|
||||
}
|
||||
cdp_url = construct_websocket_url(cdp_url, config)
|
||||
cdp_url = construct_cdp_url(cdp_url, config)
|
||||
|
||||
return cdp_url
|
||||
|
||||
|
||||
Reference in New Issue
Block a user