itskavya commited on
Commit
b7d044c
·
verified ·
1 Parent(s): 4d2eff1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -22,7 +22,8 @@ def days_until_new_year()-> str: #it's import to specify the return type
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_d2')
 
26
  print(element)
27
  return element.text
28
 
 
22
  response = requests.get("https://www.timeanddate.com/counters/newyear.html")
23
  response.raise_for_status()
24
  parsed_content = BeautifulSoup(response.content, 'lxml')
25
+ print(parsed_content)
26
+ element = parsed_content.find(id='el_d2')
27
  print(element)
28
  return element.text
29