Grabbing a number from the web, then displaying it on a 7 segment LED

Hello,

I am building a display that will retrieve two numbers from the internet and turn on that same number of LEDs (via the Arduino Leonardo).

I’m guessing that I will be able to use the Ethernet shield to retrieve the information, and then turn on whichever LEDs I need on, via the Arduino.

Is this feasible? Also, is there any example code that you could point me to?

Here is the structure of the HTML that I would need to pull the numbers from:

<!DOCTYPE html>
<html>
<head>
    <title>Test</title>
    <meta http-equiv="refresh" content="15" >
</head>
<body>
    <p>3</p>     <!--First Number, pulled from an API-->
    <p>8</p>     <!--Second Number, pulled from an API-->	
</body>
	
</html>

Thank you!

command_z:
Is this feasible?

Yes.

You should find that the library for your Ethernet shield provides an example showing how to use a web client to download a document from a web server. Then you just need to use a string comparison to locate the start and end of each number in the HTML response, use atol() or similar to parse that to an integer, and then use that to control the state of your LEDs.