public
Description: An example of a stand-alone Ruby web filter
Clone URL: git://github.com/JackDanger/hacker_news.git
commit  45f70afb3761403b855a7ca7006d7c1d26bf6b5f
tree    bb6886df8e3c18786695ecf7c2c532178319a403
parent  a004ae1f03f6a500f2fdfdbc77b53adfb57f147f
name age message
file README.markdown Thu Apr 10 11:59:19 -0700 2008 Trying to remember how markdown works [JackDanger]
file hackernews Mon Apr 21 14:04:39 -0700 2008 Revert "turned lambda into class and fixed... [JackDanger]
file init.god Sat Apr 19 15:04:58 -0700 2008 Adding a god script for hackernews [JackDanger]
README.markdown

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