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