import asyncio import base64 import random import re import nopecha import requests from hcaptcha_challenger.agents import Malenia from playwright.async_api import BrowserContext as ASyncContext, async_playwright nopecha.api_key = '5nogeisu16i5tr5r' async def route_continuation(route, request, host, sitekey): # 检查请求的URL,只拦截特定网站的请求 if request.url == f"https://{host}/": print("start to solve") # 修改DNS解析结果 await route.fulfill(status=200, body="""