Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
How to hack your own personal daily comics page (jeremyraines.com)
2 points by jraines on Jan 22, 2009 | hide | past | favorite | 1 comment


Seems awfully pointy clicky to me.

I just use this script and cron.

  #!/bin/sh
  
  function getone
  {
      PAGE=$1
      TO=$2
      SUBJ=$3
  
      URL=`curl -s "$PAGE" | sed -r -n -e 's/^.*"(http:[^"]*zoom.gif[^"]*)".*$/\1/p'`
  
      [ -z "$URL" ] || ( curl -s "$URL" | mime-construct --subject $SUBJ \
          --to $TO --attachment comic.gif --type image/gif --file - )
  }
  
  getone http://comics.com/9_chickweed_lane/ someone@example.org chickwee
  getone http://comics.com/dog_eat_doug/ someone.else@example.org dougeatdog
Of course any kind of content scraping brings ethical questions.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: