Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ from selenium.common.exceptions import WebDriverException, TimeoutException
|
|
7 |
from fastapi import FastAPI, Request
|
8 |
import uvicorn
|
9 |
import time
|
|
|
10 |
|
11 |
app = FastAPI()
|
12 |
|
@@ -26,7 +27,9 @@ def main():
|
|
26 |
|
27 |
driver = webdriver.Chrome(options=options)
|
28 |
driver.get(target_url)
|
29 |
-
|
|
|
|
|
30 |
time.sleep(wait_time)
|
31 |
|
32 |
# 获取当前URL
|
|
|
7 |
from fastapi import FastAPI, Request
|
8 |
import uvicorn
|
9 |
import time
|
10 |
+
import json
|
11 |
|
12 |
app = FastAPI()
|
13 |
|
|
|
27 |
|
28 |
driver = webdriver.Chrome(options=options)
|
29 |
driver.get(target_url)
|
30 |
+
|
31 |
+
print(driver.page_source)
|
32 |
+
|
33 |
time.sleep(wait_time)
|
34 |
|
35 |
# 获取当前URL
|