mgokg commited on
Commit
f3c1430
·
verified ·
1 Parent(s): f7de6e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def websearch(prompt):
35
  "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
36
  }
37
  #url = f"https://www.googleapis.com/customsearch/v1?key={google_api_key}&cx={cx}&q={prompt}"
38
- url = f"https://www.google.com/search?cx={cx}&q={prompt}"
39
 
40
  response = requests.get(url, headers=headers)
41
  soup = BeautifulSoup(response.content, 'html.parser')
 
35
  "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
36
  }
37
  #url = f"https://www.googleapis.com/customsearch/v1?key={google_api_key}&cx={cx}&q={prompt}"
38
+ url = f"https://www.google.com/search?q={prompt}"
39
 
40
  response = requests.get(url, headers=headers)
41
  soup = BeautifulSoup(response.content, 'html.parser')