itskavya commited on
Commit
bbe5bca
·
verified ·
1 Parent(s): 4571d4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def days_until_new_year()-> str: #it's import to specify the return type
21
  from bs4 import BeautifulSoup
22
  response = requests.get("https://www.timeanddate.com/counters/newyear.html")
23
  response.raise_for_status()
24
- parsed_content = BeautifulSoup(response.content, 'html_parser')
25
  element = parsed_content.find('el_2')
26
  return element.text
27
 
 
21
  from bs4 import BeautifulSoup
22
  response = requests.get("https://www.timeanddate.com/counters/newyear.html")
23
  response.raise_for_status()
24
+ parsed_content = BeautifulSoup(response.content, 'lxml')
25
  element = parsed_content.find('el_2')
26
  return element.text
27