refactor(Playwright Engine): Separate what we can for cleaner code and the async function later

The caching will give a slight performance increase with bulk requests
This commit is contained in:
Karim shoair
2024-12-15 23:25:02 +02:00
parent 6c17bd886e
commit 889c111855
3 changed files with 80 additions and 73 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
from .custom import (BaseFetcher, Response, StatusText, check_if_engine_usable,
check_type_validity, do_nothing, get_variable_name)
check_type_validity, do_nothing, do_nothing_async,
get_variable_name)
from .fingerprints import (generate_convincing_referer, generate_headers,
get_os_name)
from .navigation import (construct_cdp_url, construct_proxy_dict,