Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def get_daily_pred(url):
|
|
37 |
soup = BeautifulSoup(r.content, 'html.parser') # If this line causes an error, run 'pip install html5lib' or install html5lib
|
38 |
#print(soup.prettify())
|
39 |
elements = soup.find_all("div", class_="daily-horo text-center")
|
40 |
-
today=elements[
|
41 |
return(today)
|
42 |
|
43 |
def get_monthly_pred(url):
|
|
|
37 |
soup = BeautifulSoup(r.content, 'html.parser') # If this line causes an error, run 'pip install html5lib' or install html5lib
|
38 |
#print(soup.prettify())
|
39 |
elements = soup.find_all("div", class_="daily-horo text-center")
|
40 |
+
today=elements[0].text.strip()
|
41 |
return(today)
|
42 |
|
43 |
def get_monthly_pred(url):
|