So I recently started builduing a tool to download Lemmy posts as raw HTML. I am using bash for this.
I got all of my other code working so far, but the problem is, that when I fetch a command just from the post id, the entire formatting is quite fucked. An example:


Does anyone know how I can fetch the post with curl (or if you have any other CLI programm, that could do this, feel free to recommend them to me), after everything has been loaded, so that in the end I can see the post as I would normally see it through the web interface.
It's missing the CSS, and I don't think this is something you can do solely with curl, at least without a bunch of parsing. Wget does have a
--page-requisitesoption that should work though.Also, your first screenshot has included the HTTP headers, which are not part of the HTML. You probably need to remove a
-vfrom the curl command, although it doesn't really fix the main issue.Edit: You also might get some more replies if you posted to one of the programming communities.