Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,9 @@ from bs4 import BeautifulSoup
|
|
| 4 |
import re
|
| 5 |
|
| 6 |
def search_fn(query,count):
|
| 7 |
-
|
|
|
|
|
|
|
| 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 |
|