Vo Hoang Minh commited on
Commit ·
b3cac7e
1
Parent(s): f238f57
up
Browse files- .dockerignore +1 -0
- main.py +1 -1
.dockerignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
/.venv
|
main.py
CHANGED
|
@@ -101,7 +101,7 @@ async def browse(
|
|
| 101 |
await stealth_async(page) # 🚀 Kích hoạt Stealth Mode
|
| 102 |
await page.goto(url, timeout=30000, wait_until='networkidle')
|
| 103 |
await solve_captcha(page) # 🔥 Giải CAPTCHA nếu có
|
| 104 |
-
time.sleep(
|
| 105 |
path = SS_DIR / f"{uuid.uuid4()}.png"
|
| 106 |
await page.screenshot(path=str(path))
|
| 107 |
return FileResponse(str(path), media_type="image/png")
|
|
|
|
| 101 |
await stealth_async(page) # 🚀 Kích hoạt Stealth Mode
|
| 102 |
await page.goto(url, timeout=30000, wait_until='networkidle')
|
| 103 |
await solve_captcha(page) # 🔥 Giải CAPTCHA nếu có
|
| 104 |
+
time.sleep(1)
|
| 105 |
path = SS_DIR / f"{uuid.uuid4()}.png"
|
| 106 |
await page.screenshot(path=str(path))
|
| 107 |
return FileResponse(str(path), media_type="image/png")
|