Pat Gunn (dachte) wrote,
Pat Gunn

For a friend who wanted to download all the titles from The Baen online library without doing it by hand, I prodded at the source to their pages, and came up with some incantations to make it easy. I provide them here for your usage.

wget -r -np -l 1
cat *.htm | grep option | grep value | cut -d\" -f2 | grep http | xargs -n1 wget

Note that the prefix of a file determines what type it is.

  • H is HTML
  • M is MS Reader
  • P is Palm
  • R is Rocket
  • D is RTF
There's no good, automated way to get the titles.
Tags: tech

  • JS Ugliness

    I'm weirded out that standards for Javascript programming are so low. Having made a more-or-less a successful first project, where I really rushed…

  • Controversial Opinions in Programming

    I like that recently there's been a meme floating around, started by one good blog post that got a lot of airtime, of posting and then talking about…

  • Firefox and Clipboard-clobbering

    I often find that my PRIMARY clipboard (the one associated with mouse selections in the X Window System, not to be confused with the CLIPBOARD…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded