broadfield-dev commited on
Commit
ccbb413
·
verified ·
1 Parent(s): 83a95dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -148,8 +148,8 @@ async def perform_web_browse(action: str, query: str, browser_name: str, search_
148
 
149
  try:
150
  response = await page.goto(url, wait_until='domcontentloaded', timeout=25000)
151
- print(response)
152
  html_content = await page.content()
 
153
 
154
  if any(phrase in html_content for phrase in ["unusual traffic", "CAPTCHA", "are you human", "not a robot"]):
155
  raise Exception(f"Anti-bot measure detected on {page.url}. Try another search engine or proxy.")
 
148
 
149
  try:
150
  response = await page.goto(url, wait_until='domcontentloaded', timeout=25000)
 
151
  html_content = await page.content()
152
+ print(html_content)
153
 
154
  if any(phrase in html_content for phrase in ["unusual traffic", "CAPTCHA", "are you human", "not a robot"]):
155
  raise Exception(f"Anti-bot measure detected on {page.url}. Try another search engine or proxy.")