I am trying to extract data from a simple html page that takes temperature reading from arduino I have managed to get to the point where I get the string with the temperature reading which is:
'Temperature in Celsius: \r\n 23.20\r\n*C'
but I cannot work out how to extract the temperature float from the string, any suggestions? please bear in mind that the resulting temperature changes as the arduino take live reading...
from lxml import html
import requests
page = requests.get('http://192.168.1.103:180')
tree = html.fromstring(page.content)
extract = tree.xpath('/html/body/h3[1]/text()')
print extract