complaints while running from BeautifulSoup import BeautifulSoup

Joined
Mar 2, 2020
Messages
6
Reaction score
0
hi there - good day.dear pyton.fellows

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:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top