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:
Karim shoair
2024-11-03 22:46:40 +02:00
parent b8afb390ae
commit 2ff0fbb0e5
3 changed files with 28 additions and 11 deletions
+2 -2
View File
@@ -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