Omnibus commited on
Commit
02496bc
·
1 Parent(s): 069093d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,7 +4,9 @@ from bs4 import BeautifulSoup
4
  import re
5
 
6
  def search_fn(query,count):
7
- page = requests.get(f"https://www.google.com/search?q={query}")
 
 
8
  soup = BeautifulSoup(page.content)
9
  #links = soup.findAll("a")
10
 
 
4
  import re
5
 
6
  def search_fn(query,count):
7
+ if count>99:
8
+ count = 99
9
+ page = requests.get(f"https://www.google.com/search?q={query}&num={count}")
10
  soup = BeautifulSoup(page.content)
11
  #links = soup.findAll("a")
12