Spaces:
Running
Running
github-actions[bot]
commited on
Commit
·
4d34d9b
1
Parent(s):
f5f4fc4
Update from GitHub Actions
Browse files
main.py
CHANGED
@@ -377,7 +377,15 @@ async def proxy(request: Request):
|
|
377 |
|
378 |
# 创建带有代理的 scraper
|
379 |
# 创建cloudscraper实例
|
380 |
-
scraper = cloudscraper.create_scraper(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
381 |
|
382 |
# 从请求中获取cookies并设置到scraper
|
383 |
cookies = request.cookies
|
|
|
377 |
|
378 |
# 创建带有代理的 scraper
|
379 |
# 创建cloudscraper实例
|
380 |
+
scraper = cloudscraper.create_scraper(
|
381 |
+
browser={
|
382 |
+
'browser': 'chrome',
|
383 |
+
'platform': 'windows',
|
384 |
+
'mobile': False
|
385 |
+
},
|
386 |
+
debug=True,
|
387 |
+
delay=10
|
388 |
+
)
|
389 |
|
390 |
# 从请求中获取cookies并设置到scraper
|
391 |
cookies = request.cookies
|