Arafath10 commited on
Commit
8740a29
1 Parent(s): a6e8718

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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=True) # Switch to WebKit
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(