LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read a number from a web page

Solved!
Go to solution

hello everyone
I need to read a number from a webpage. This number is online electricity price which is updated every 5 min. I need to use this price as a parameter in my controller

 

any suggestion will be appreciated in advance 😄

Reza

0 Kudos
Message 1 of 5
(2,345 Views)
Solution
Accepted by topic author automation_and_control

Simply read the webpage as text file and parse it as mentioned here

0 Kudos
Message 2 of 5
(2,331 Views)

"Scraping" is regarded as hacking by many sites.  Make sure what you are attempting is not violating their Terms of Service (if applicable).

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 5
(2,300 Views)

Thanks for the reply,
based on what u proposed I can read the page. How can I use a particular number among other irrelevant information? (it reads like 100 lines but I only need to use a number within that text) 

 

Reza

0 Kudos
Message 4 of 5
(2,277 Views)

Find the line in which the required information is available.

Parse the text using string functions and extract the data.

0 Kudos
Message 5 of 5
(2,272 Views)