I am looking for a way to get a number from a simple web page with the scraper component. Having looked around, I just don’t get it. Could anyone give me a hint how to get the number (1 in this case) at the end of this line:
<p ALIGN=CENTER>STEEL Industrial 11 Kg FULL TANKS : 1</p>
Here is the entire web page:
<!DOCTYPE html>
<html>
<body>
<body bgcolor = beige>
<head>
<title>Gassautomat SC 160 Vormsund Inventory Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<p ALIGN="CENTER"><b>MAGAZINE INVENTORY OF SC 160 Vormsund</b></p>
<p ALIGN=CENTER>STEEL Standard 11 Kg FULL TANKS : 2</p>
<p ALIGN=CENTER>STEEL Industrial 11 Kg FULL TANKS : 1</p>
<p ALIGN=CENTER>COMPOSITE Standard 10 Kg FULL TANKS : 5</p>
<p ALIGN=CENTER>COMPOSITE Industrial 10 Kg FULL TANKS : 0</p>
<p ALIGN=CENTER>STEEL 5 Kg FULL TANKS : 3</p>
<p ALIGN=CENTER>COMPOSITE 5 Kg FULL TANKS : 3</p>
</body>
</html>
Holy moly, that worked! Thank you very much, @ufulu! The only thing I see now is that the sensor outputs:
‘ 1’
So it would seem the result contains the symbols as well as the number, and also a space. Is it possible to get rid of the symbols and space and only leave an actual number that can be used for automation purposes?