| Post Reply | RetroFed Forum Forum Index » Lemmy Support |
| Author | Message | ||
|---|---|---|---|
da_cow (she/her)
feddit.org
cows_are_underrated@feddit.orgJoined: 2024-06-22 |
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. |
||
| 1 Original | |||
|
SteveTech
aussie.zone
SteveTech@aussie.zone Joined: 2025-09-30 |
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 Also, your first screenshot has included the HTTP headers, which are not part of the HTML. You probably need to remove a Edit: You also might get some more replies if you posted to one of the programming communities. |
||
| 2 | |||
| Post Reply |
Back to top |