Hello everyone,
I want to use “scrape” to read data from my heatpump web browser.
Unfortunately I don’t get any value.
It is also possible to log in without a password.
After logging in, I would like to read out the first temperature value.
Her is my code:
scrape:
The entity Vorlauf_1 is always unknown.
What am I doing wrong?
Thank you for your help
Troon
(Troon)
March 24, 2024, 6:10pm
2
If you do View Source rather than use F12 DevTools, can you see that value in the HTML?
If not, it’s being dynamically fetched. Use the Network tab in DevTools to work out where it’s coming from.
Hi Troon,
thanks for the quick reply.
You’re right, it doesn’t show up under view-source.
How do I find this in DevTools?
Troon
(Troon)
March 24, 2024, 8:02pm
4
Press f5 to reload. You should see a load of resources being loaded. Look at the ones of type xhr
and see if you can find one where the response looks like it contains the data you need. I answered a very similar question here: follow the thread:
I would like to use the scrape function for a website, but need your help as there are multiple blocks. Below is a snapshot of the html (www.actuelewind.nl)
<div class="ui-grid-b bar-gray">
<div class="ui-block-a"><div class="ui-bar spotDetailBlock ui-bar-links ui-bar-top">
<div class="spotDetailBlock">Windsnelheid <div id="spotInfoWindsnelheidMS" class="spotDetailBlockInfo">23.5</div> <span class="spotDetailFavWindEenheid">knopen</span></div>
</div></div>
<div class="ui-block-b"><div cl…
I could access the URL in that example, though, which I can’t with yours — you’ll have to work it out yourself.
Thanks for the reply
After I pressed F5 the login window opened.
Here is the picture of it.
I don’t think I can find a solution on my own…
I would still be very happy about any further ideas
Troon
(Troon)
March 24, 2024, 10:26pm
6
Ok now log in to that window…
After logging in, the DevTool closes.
When I open the DevTool again, the entries are empty.