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

  • Testing functions in Perl

    (Nothing particularly profound or my-idea-centric here, and I was tempted to post it to my personal blog instead, but it's worth trying to learn…

  • Abstract strategies for abstraction

    There are a few purposes of abstraction in programming; one of them is to construct a uniform API that is independent of the backend that can work…

  • Statistical Software Components

    A few months ago I mentioned my big library of useful generic C/Perl functions (libpgunn). There are plenty of other general-purpose libraries out…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded