Spaces:
Paused
Paused
Update main.py
Browse files
main.py
CHANGED
|
@@ -63,11 +63,10 @@ async def proxy(request: Request, path: str, target_url: Optional[str] = None):
|
|
| 63 |
},
|
| 64 |
delay=10
|
| 65 |
)
|
| 66 |
-
|
| 67 |
-
scraper.get("https://grok.com/",headers={
|
| 68 |
"sec-fetch-dest": "document",
|
| 69 |
})
|
| 70 |
-
|
| 71 |
# 获取请求体
|
| 72 |
body = await request.body()
|
| 73 |
|
|
|
|
| 63 |
},
|
| 64 |
delay=10
|
| 65 |
)
|
| 66 |
+
grok_response = scraper.get("https://grok.com/",headers={
|
|
|
|
| 67 |
"sec-fetch-dest": "document",
|
| 68 |
})
|
| 69 |
+
print(f"grok主页状态码: {grok_response.status_code}")
|
| 70 |
# 获取请求体
|
| 71 |
body = await request.body()
|
| 72 |
|