mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-09-24 14:20:08 +01:00
revert refactor of src/utils.py
This commit is contained in:
+2
-7
@@ -27,19 +27,14 @@ def get_sb(
|
||||
detail="SOCKS5 proxy with authentication is not supported. Check README for more info.",
|
||||
)
|
||||
|
||||
sb_ctx = SB(
|
||||
with SB(
|
||||
uc=True,
|
||||
headless=USE_HEADLESS,
|
||||
locale_code="en",
|
||||
ad_block=True,
|
||||
proxy=proxy,
|
||||
)
|
||||
sb = sb_ctx.__enter__()
|
||||
try:
|
||||
) as sb:
|
||||
yield sb
|
||||
finally:
|
||||
sb_ctx.__exit__(None, None, None)
|
||||
|
||||
|
||||
|
||||
def save_screenshot(sb: BaseCase):
|
||||
|
||||
Reference in New Issue
Block a user