Spaces:
Sleeping
Sleeping
Update app.py
Browse files21 unmodified lines22232425262728293021 unmodified linesresponse = requests.get("https://www.timeanddate.com/counters/newyear.html")response.raise_for_status()parsed_content = BeautifulSoup(response.content, 'lxml')print(parsed_content)element = parsed_content.find(id='el_d2')print(element)return element.textexcept Exception as e:21 unmodified lines2223242526272821 unmodified linesresponse = requests.get("https://www.timeanddate.com/counters/newyear.html")response.raise_for_status()parsed_content = BeautifulSoup(response.content, 'lxml')element = parsed_content.find(id='el_d2')return element.textexcept Exception as e:
app.py-2