Skip to content

Extracting data from an HTML page

Julian Knight edited this page Dec 11, 2017 · 2 revisions

An example by Dave CJ in the Google Group:

[{"id":"6356e541.11a4dc","type":"inject","z":"f03b57d5.e525f8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":120,"y":1200,"wires":[["f10c4c74.0c258"]]},{"id":"f10c4c74.0c258","type":"http request","z":"f03b57d5.e525f8","name":"","method":"GET","ret":"txt","url":"http://publicinfobanjir.water.gov.my/View/OnlineFloodInfo/PublicWaterLevel.aspx?scode=SEL","tls":"","x":290,"y":1200,"wires":[["6deab1bb.58e8a"]]},{"id":"6deab1bb.58e8a","type":"html","z":"f03b57d5.e525f8","name":"","tag":"table[class=Grid]","ret":"html","as":"multi","x":490,"y":1200,"wires":[["4eb5946f.7eae7c"]]},{"id":"4eb5946f.7eae7c","type":"html","z":"f03b57d5.e525f8","name":"","tag":"tr","ret":"html","as":"single","x":690,"y":1200,"wires":[["80bd91fa.77ce5"]]},{"id":"80bd91fa.77ce5","type":"debug","z":"f03b57d5.e525f8","name":"","active":true,"complete":false,"x":850,"y":1200,"wires":[]}]

https://groups.google.com/forum/#!topic/node-red/J0020rPetAY