mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 09:50:20 +08:00
fix deprecation warning
This commit is contained in:
parent
c27c1961ba
commit
acaacf842f
@ -15,7 +15,7 @@ if len(logger.handlers) == 0:
|
|||||||
def get_sb(
|
def get_sb(
|
||||||
proxy: str | None = Header(
|
proxy: str | None = Header(
|
||||||
default=None,
|
default=None,
|
||||||
example="username:password@host:port",
|
examples=["username:password@host:port"],
|
||||||
description="Override default proxy from env",
|
description="Override default proxy from env",
|
||||||
),
|
),
|
||||||
):
|
):
|
||||||
@ -23,7 +23,6 @@ def get_sb(
|
|||||||
with SB(
|
with SB(
|
||||||
uc=True,
|
uc=True,
|
||||||
headless=USE_HEADLESS,
|
headless=USE_HEADLESS,
|
||||||
headed=not USE_HEADLESS,
|
|
||||||
locale_code="en",
|
locale_code="en",
|
||||||
ad_block=True,
|
ad_block=True,
|
||||||
proxy=proxy or PROXY,
|
proxy=proxy or PROXY,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user