4chan is a simple Ruby gem for the 4chan API. The API is actually really simple, and the primary documentation can be found here.
However, as the API grows and expands, it may be that simple parsing of the JSON is no long really that simple. Or you just like using Gems for things to abstract them and keep stuff simple.
Primary 4chan API documentation can be found at: https://github.com/4chan/4chan-API
Please respect 4chan's servers and do not hammer them with excessive requests. They are currently asking for no more than 1 request/second.
require 'FourChan' FourChan.setup results = FourChan.thread("vg", "13459054") # Print the first posts's comment text p results[:posts].first[:com]
Much code here is inspired by (and sometimes copied from) the Twitter Ruby Gem (https://github.com/sferik/twitter) by John Nunemaker, Wynn Netherland, Erik Michaels-Ober, Steve Richert.