public
Description: An example of a stand-alone Ruby web filter
Clone URL: git://github.com/JackDanger/hacker_news.git
JackDanger (author)
Thu Apr 10 11:59:19 -0700 2008
commit  da88a06cef03cc97d0d55e06f425efb5114cca28
tree    011326f6727b47cf774acc4331a7113e0515d4a7
parent  28de077ed15c6eeaaac138d61b0a25f7b474cba5
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