Spaces:
Paused
Paused
github-actions[bot]
commited on
Commit
·
2e466ee
1
Parent(s):
b9120d1
Update from GitHub Actions
Browse files
main.py
CHANGED
|
@@ -383,8 +383,12 @@ async def proxy(request: Request):
|
|
| 383 |
# 'platform': 'windows',
|
| 384 |
# 'mobile': False
|
| 385 |
# },
|
|
|
|
|
|
|
|
|
|
|
|
|
| 386 |
#debug=True,
|
| 387 |
-
|
| 388 |
)
|
| 389 |
|
| 390 |
# 从请求中获取cookies并设置到scraper
|
|
@@ -412,7 +416,7 @@ async def proxy(request: Request):
|
|
| 412 |
home_url = f"{parsed_url.scheme}://{parsed_url.netloc}/"
|
| 413 |
|
| 414 |
# 重试获取主页响应
|
| 415 |
-
max_retries =
|
| 416 |
retry_delay = 1 # 重试间隔秒数
|
| 417 |
home_response = None
|
| 418 |
|
|
|
|
| 383 |
# 'platform': 'windows',
|
| 384 |
# 'mobile': False
|
| 385 |
# },
|
| 386 |
+
# captcha={
|
| 387 |
+
# 'provider': '2captcha',
|
| 388 |
+
# 'api_key': ' '
|
| 389 |
+
# },
|
| 390 |
#debug=True,
|
| 391 |
+
delay=10
|
| 392 |
)
|
| 393 |
|
| 394 |
# 从请求中获取cookies并设置到scraper
|
|
|
|
| 416 |
home_url = f"{parsed_url.scheme}://{parsed_url.netloc}/"
|
| 417 |
|
| 418 |
# 重试获取主页响应
|
| 419 |
+
max_retries = 3
|
| 420 |
retry_delay = 1 # 重试间隔秒数
|
| 421 |
home_response = None
|
| 422 |
|