Dynamisch ladende Seite als ganzes in html abspeichern?
Hallo zusammen!
Ich habe folgende Frage:
Gibt es eine Möglichkeit (Funktion in Javascript, extra Add on o.Ä.) eine dynamisch ladende Seite abzuspeichern?
Konkret meine ich z.B. bei Telegram-Web ist es so, dass niemals alle Nachrichten gleichzeitig geladen werden, sondern die laden immer dann, wenn man hochscrollt und ich möchte gerne allgemein (und eben speziell bei Telegram) irgendeine Funktion haben, wie ich mir davon dann auch ein Snapshot (also die Seite als html) abspeichern kann.
Ich hatte es schon mithilfe von perplexity versucht, allerdings hat das nicht geklappt, da er mir nur ein Skript ausgegeben hat, dass die Seite einmal durchscollt und dann als html speichert, allerdings werden dann wieder frühere Nachrichten nicht mitgespeichert.
Danke im Voraus!
There’s nothing like that. I think you can either query the API and save the messages as text, or scroll through with one MutationObeserver or so, store all incoming messages and then externally assemble the HTML.
I don’t know what the latter is doing. For now, there are certainly tools, but I have no experience and you need to note that this is probably against the terms of service.
Thank you.
What does the mentioned mutation observer do? Does he only recognize changes or does it work as I had imagined (storing the entire page (meaning as single files) while scrolling down)?
When asking the API, I can very well imagine that this is against the terms, so I leave it, but thank you anyway!
A mutation observer only outputs which changes are made in the DOM (insert / remove HTML snippets, changes in content, etc.).
Without its own code it is not possible to:/
Thank you.
To do this, you would have to master the basics of Javascript as well as know something with browsers / dynamic websites and already have a concept. Learning everything in a weekend is more difficult:/
I would either simply use the API anyway (so quickly you don’t get blocked); if necessary with another account and another IP. Or order someone who can do that.
Otherwise, if it would also be okay to make a video / screenshots in the previous scroll.
Okay, thanks.
What are you, whether there are online resources and if so?
I’m not so affin for programming.