feat: 为出站请求统一接入 HTTP 代理
This commit is contained in:
@@ -164,7 +164,11 @@ async def main() -> int:
|
||||
log: list[str] = []
|
||||
|
||||
async with async_playwright() as pw:
|
||||
browser = await pw.chromium.launch(headless=True, args=["--no-first-run"])
|
||||
browser = await pw.chromium.launch(
|
||||
headless=True,
|
||||
proxy=settings.playwright_proxy,
|
||||
args=["--no-first-run"],
|
||||
)
|
||||
context = await browser.new_context(
|
||||
storage_state=state_path,
|
||||
user_agent=auth_site.RAKUTEN_USER_AGENT,
|
||||
|
||||
Reference in New Issue
Block a user