public
Description: An example of a stand-alone Ruby web filter
Clone URL: git://github.com/JackDanger/hacker_news.git
JackDanger (author)
Mon Apr 21 14:16:11 -0700 2008
commit  65adb49daed40bd7138798310780c2e51ba79d79
tree    4c5776c41663b32024260e1146c7480004d33757
parent  608ecff80b30320a09e3fbc8b1e87a06fbe549e2
hacker_news / README.markdown
100644 12 lines (8 sloc) 0.412 kb

Hacker News

This tiny script is a scraper for http://news.ycombinator.com. It shows just how little Ruby is required to run a powerful web filter.

What it be doin':

  • Fetches the YCombinator news page
  • HPricot's it into pieces
  • Builds an RSS feed
  • Uses links to parse the destination article page and include the main text inline
  • Runs as a stand-alone server thanks to Rack and Mongrel