0.0.4
This commit is contained in:
@@ -467,6 +467,14 @@ def create_fingerprint_browser(proxy: str) -> tuple[str, str] | None:
|
|||||||
http = bit_browser.bit_browser_open(browser_id)
|
http = bit_browser.bit_browser_open(browser_id)
|
||||||
if not http:
|
if not http:
|
||||||
return None
|
return None
|
||||||
|
# 等待浏览器进程就绪
|
||||||
|
for _ in range(10):
|
||||||
|
try:
|
||||||
|
if bit_browser.bit_browser_status(browser_id):
|
||||||
|
break
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
time.sleep(0.5)
|
||||||
logger.info(f"打开指纹浏览器成功: {browser_id}")
|
logger.info(f"打开指纹浏览器成功: {browser_id}")
|
||||||
return browser_id, http
|
return browser_id, http
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@@ -530,7 +538,12 @@ def run_task_with_proxy(proxy: str, stop_event: threading.Event) -> None:
|
|||||||
if stop_event.is_set():
|
if stop_event.is_set():
|
||||||
return
|
return
|
||||||
auto = Auto(http=http)
|
auto = Auto(http=http)
|
||||||
|
logger.info("准备打开URL: https://www.claimform.youtubeprivacysettlement.com")
|
||||||
auto.open_url('https://www.claimform.youtubeprivacysettlement.com')
|
auto.open_url('https://www.claimform.youtubeprivacysettlement.com')
|
||||||
|
try:
|
||||||
|
logger.info(f"已触发打开URL,当前地址: {auto.get_tab().url}")
|
||||||
|
except Exception:
|
||||||
|
logger.info("已触发打开URL,读取当前地址失败")
|
||||||
if stop_event.is_set():
|
if stop_event.is_set():
|
||||||
return
|
return
|
||||||
if not auto.wait_home():
|
if not auto.wait_home():
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
work = [
|
work = [
|
||||||
"us.novproxy.io:1000:qyd00056-region-US:qyd00056",
|
"us.novproxy.io:1000:qyd00056-region-US:qyd00056",
|
||||||
"us.novproxy.io:1000:qyd00054-region-US:qyd00054",
|
|
||||||
"us.novproxy.io:1000:qyd00053-region-US:qyd00053",
|
|
||||||
"us.novproxy.io:1000:qyd00052-region-US:qyd00052",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
ca1 = [
|
ca1 = [
|
||||||
|
|||||||
Reference in New Issue
Block a user