- Joined
- Mar 2, 2020
- Messages
- 6
- Reaction score
- 0
hi there - good day.dear pyton.fellows
working on a python scriot - tyinn
the various approaches sieem to give back some errors
working on a python scriot - tyinn
Code:
from BeautifulSoup import BeautifulSoup
import urllib2
response = urllib2.urlopen(
"https://measurements.mobile-alerts.eu/Home/MeasurementDetails?deviceid=024241E85F13&vendorid=3ba9bbb5-aa69-49a0-9ece-36419a9230d9&appbundle=eu.mobile_alerts.mobilealerts")
html = response.read()
parsed_html = BeautifulSoup(html)
zeit = parsed_html.body.find("td", attrs={"class":"timestamp"}).string
wert = parsed_html.body.find("td", attrs={"class":"measurement"}).string
print("Messzeitpunkt:%s | Temperatur:%s" % (zeit, wert))
the various approaches sieem to give back some errors
Last edited: