Talk to you about the component to make get posts? I want to retrieve the html of the page in real time during navigation to know for example the product he is looking at. It is possible to link the Web view and the Web component ?
use the property CurrentUrl of the webviewer to get the current url and load the html using the web component together with that url
you might want to try something?
Taifun
Unfortunately it doesn’t work well I get HTML but not all of it, with the webview tools extension I got more than 150 000 characters the whole page, with the web component only 10 000. I’m looking for a way to get the code directly because it often changes page, depending on the input and the choice of the client. Do you have another idea?
Thanks for your answer I’ll try this, but to see the source I have to set the URL in view-source:url on the web component? Because if that’s it, it won’t work the way I want. I want to get the html in real time because the code changes depending on what my client chooses. I would like to be able to get the source code on a variable or other at any time as soon as the URL changes.
Very complicated it doesn’t work.I’ve tried to inject JS and even the Body doesn’t load because there’s a script that runs before the page even loads. So I get either null or {} or the HTML without the body, do you have a track ?
<body>
<script>var favicon = document.createElement('link');
favicon.rel = 'shortcut icon';
var domainParts = window.location.host.split('.');
while (domainParts.length > 2) domainParts.shift();
var domainName = domainParts.join('.');
if (btoa(domainName) === "Zm9vZGJvb2tpbmcuY29t") {
favicon.href = './assets/favicon.png';
} else {
favicon.href = './assets/favicon-rl-tiny.png';
}
document.getElementsByTagName('head')[0].appendChild(favicon);</script>
BLA BLA
</body>
That’s how the body loads a script in the head I think that’s what’s blocking me.
But with the extension mentioned above I was loading all the HTML. Do you think if I use your WEB extension using JS I could get the HTML ?