Here is my solution, which will log into this website.
It will click on home and it will scrape this dynamic value here.
This is the code.
So let me explain it quickly since we are dealing with a chain of functions here.
So get driver, clean text and main. It makes sense to explain the script from top to bottom.
So we are calling main, which gets the driver.
this one in here, you know, that's for of this web page URL.
So the log in page where we enter the username here and the password in here and we press enter and
then we click on the home link on that loged in page. Afterward,
this is what I'm doing.
So text equals to driver.find_element by xpath.
And this is my X path, which I found from Google Chrome. The inspect tool on Google Chrome.
So then we return that clean text.
So we just extract the temperature value, the number and return the clean outputs, which is a float.
You can see here, output is a float.
And we returned that here.
So let me run the scripts just to demonstrate to you that this solution is working. The username
and the password.
Press log in.
Then go to home and get that number and print it out.
So 29 is the output. Thank you for following.
I'll talk to you later.