Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,10 +8,10 @@ from googlesearch import search
|
|
8 |
from urllib.parse import parse_qs
|
9 |
|
10 |
def run_lora(prompt,site,start,end):
|
11 |
-
murl = "https://www.google.com/search?q=
|
12 |
-
surl = "https://www.google.com/search?q=
|
13 |
page = requests.get(murl)
|
14 |
-
print("https://www.google.com/search?q=
|
15 |
soup = BeautifulSoup(page.content)
|
16 |
import re
|
17 |
links = soup.findAll("a")
|
|
|
8 |
from urllib.parse import parse_qs
|
9 |
|
10 |
def run_lora(prompt,site,start,end):
|
11 |
+
murl = "https://www.google.com/search?q=site:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end
|
12 |
+
surl = "https://www.google.com/search?q=site:" +site + " " +prompt + "after:"+start+"before:" + end
|
13 |
page = requests.get(murl)
|
14 |
+
print("https://www.google.com/search?q=site:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end)
|
15 |
soup = BeautifulSoup(page.content)
|
16 |
import re
|
17 |
links = soup.findAll("a")
|