Shadorlo
(Shadorlo)
April 4, 2023, 7:39am
1
Hello, I am looking to recover an energy value on an EDF ENR panel
Link to the login page : https://espaceclient.edfenr.com/
Source code of the text I want to retrieve :
<div class="truncate text-sm font-bold leading-4 mb-px">--</div>
Photo du panel
(It’s marked “–” because it’s 00h00 and therefore no sun hihi)
For information when I enter my login I am directly redigirated on the right page to see the consumption
Hellis81
(Hellis81)
April 4, 2023, 7:49am
2
I’m pretty sure there is JavaScript on that page. Meaning it won’t work.
But is this the same?
Console API — Open Data EDF Corse
Shadorlo
(Shadorlo)
April 4, 2023, 8:03am
3
It’s not the same thing from what I see
Shadorlo
(Shadorlo)
April 4, 2023, 8:03am
4
How can I know if there is java-script even if I see it?
Hellis81
(Hellis81)
April 4, 2023, 8:06am
5
All the files you posted in that image that ends with .js
is javascript.
And you can probably find it in the head of the html.
Shadorlo
(Shadorlo)
April 4, 2023, 8:11am
7
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Espace client</title>
<script type="module" crossorigin src="/assets/index.644df93e.js"></script>
<link rel="stylesheet" href="/assets/index.12ae6a1b.css">
<link rel="manifest" href="/manifest.webmanifest"><script src="/registerSW.js"></script></head>
<body>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5ZZK9H" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<div id="app"></div>
<div id="tp-layer"></div>
</body>
</html>
How can i use a filename instead of url as a recource for scrape?
Or are there any way to use a local ip as a recource because my ip does not work.
Here my local ip:
http://127.0.0.1:17580/pebble