Hana Celeste commited on
Commit
5c50257
·
verified ·
1 Parent(s): db9faca

Update app/byps_logic.py

Browse files
Files changed (1) hide show
  1. 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 stealth_async
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 stealth_async(page)
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)