Hana Celeste commited on
Update app/byps_logic.py
Browse files- app/byps_logic.py +2 -2
app/byps_logic.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import asyncio
|
| 2 |
import random
|
| 3 |
from playwright.async_api import async_playwright
|
| 4 |
-
from playwright_stealth import
|
| 5 |
|
| 6 |
class BypsApp:
|
| 7 |
def __init__(self):
|
|
@@ -32,7 +32,7 @@ class BypsApp:
|
|
| 32 |
|
| 33 |
page = await context.new_page()
|
| 34 |
# Áp dụng Stealth để giả lập trình duyệt người dùng thật
|
| 35 |
-
await
|
| 36 |
|
| 37 |
try:
|
| 38 |
await page.goto(url, wait_until="domcontentloaded", timeout=60000)
|
|
|
|
| 1 |
import asyncio
|
| 2 |
import random
|
| 3 |
from playwright.async_api import async_playwright
|
| 4 |
+
from playwright_stealth import stealth
|
| 5 |
|
| 6 |
class BypsApp:
|
| 7 |
def __init__(self):
|
|
|
|
| 32 |
|
| 33 |
page = await context.new_page()
|
| 34 |
# Áp dụng Stealth để giả lập trình duyệt người dùng thật
|
| 35 |
+
await stealth(page)
|
| 36 |
|
| 37 |
try:
|
| 38 |
await page.goto(url, wait_until="domcontentloaded", timeout=60000)
|