Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -42,7 +42,7 @@ async def get_data(url: str):
|
|
42 |
async def scrape_website(url):
|
43 |
async with async_playwright() as p:
|
44 |
# Try using WebKit or Firefox if Chromium fails
|
45 |
-
browser = await p.webkit.launch(headless=
|
46 |
|
47 |
# Create a new browser context with a realistic user-agent
|
48 |
context = await browser.new_context(
|
|
|
42 |
async def scrape_website(url):
|
43 |
async with async_playwright() as p:
|
44 |
# Try using WebKit or Firefox if Chromium fails
|
45 |
+
browser = await p.webkit.launch(headless=False) # Switch to WebKit
|
46 |
|
47 |
# Create a new browser context with a realistic user-agent
|
48 |
context = await browser.new_context(
|