For a long time I hated markdown.

Now I love it.

What do you think?

  • glans [it/its]@hexbear.netOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    OK sorry if I am telling you something you already know, but the classic tool to use to scrape a website is wget. Starting from one URL it can find all linked URLs and download them, or not, based on configuration. I have always found it pretty much accessible it was one of the earliest cli tools I used. You can learn a little bit or a lot. I think for this task you could learn a little. So that would get you a perfect local mirror or the site.

    GNU has the comprehensive docs of course https://www.gnu.org/software/wget/. But starting with some random tutorial might be better choice.

    To get it to markdown you’ll have to add another step, perhaps turndown or pandoc.

    Other projects to check out is httrack and tangentially archivebox.