Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An example of a stand-alone Ruby web filter

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.markdown
Octocat-spinner-32 hackernews.rb
Octocat-spinner-32 init.god
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
Something went wrong with that request. Please try again.