Here is an exercise for you.
Your task is to create a script which scrapes this value here on the web page, and it does that every
two seconds and it saves each file in a text file.
So notice that I'm on a Web page here, so I'm not logged in.
You see, this is the home page.
So the outputs should look something like this. Let me fork this.
I'm not going to show you the code.
So let's say scrape dynamic values and save to Files or to File.
So each value in one file.
So you should write a script that if you run that script, then every two seconds one text file should
be generated here in the file directory.
The name of each text file is going to reflect the current date time.
So, for example, it would be something like this.
Let's suppose the time now is 2022.
Let's say is, let's say it's February and 10th of February and maybe a dot..
And then you have the hour.
So let's say it's 14 now in the afternoon and then a dash again.
The minutes, let's say it's 33.
And the seconds, let's suppose, is 59.
dot txt.
So the script would generate that file, and inside this file would be the current temperature,
let's say, 23.
Then, after two seconds, another file would be generated.
The name of that other file would be similar to this, so 2022-2-10-14
and than it would be something like two seconds after the first one, which is, in this
case, 34 minutes and zero three seconds dot txt.
So three seconds after the first one, you see, every two seconds
this would have the current value, maybe 25 and so on.
So you get the idea the scripts should be running continuously, scraping and generating text files
every two seconds.
Good luck with your task.