bterlson / reddit

An interface to the Reddit API

This URL has Read+Write access

bterlson (author)
Wed Sep 17 13:15:11 -0700 2008
commit  a71e0d166423cca423a8257b007b965b746b2a05
tree    801b9b7a9016edaad10400a273e9592b9d2548bd
parent  567ab53eea1192521c59cb0f017114ca439e0784
reddit /
name age message
file History.txt Thu Jun 19 11:17:14 -0700 2008 Updated version information. [bterlson]
file License.txt Thu May 22 15:55:55 -0700 2008 first commit [bterlson]
file Manifest.txt Thu May 22 15:55:55 -0700 2008 first commit [bterlson]
file README.textile Wed Sep 17 13:15:11 -0700 2008 Fix textile documentation. [bterlson]
file Rakefile Thu May 22 16:00:39 -0700 2008 Adding gemspec for Github gems. [bterlson]
directory lib/ Wed Sep 17 13:09:30 -0700 2008 Documentation and version increase. [bterlson]
file reddit.gemspec Wed Sep 17 13:09:30 -0700 2008 Documentation and version increase. [bterlson]
directory spec/ Wed Sep 17 13:03:28 -0700 2008 * Improved get_resources, simplifying its use. ... [bterlson]
directory tasks/ Thu May 22 15:55:55 -0700 2008 first commit [bterlson]
README.textile

reddit

http://github.com/bterlson/reddit/

DESCRIPTION:

An interface to the reddit API.

FEATURES:

  • Retrieve articles and their comments
  • Retrieve user pages and any number of a user’s comments
  • View hot, top, new, rising and controversial stories from main reddit or any subreddit
  • More, I’m sure!

SYNOPSIS:

require ‘rubygems’ require ‘reddit’ reddit = Reddit::Session.new reddit.main.articles(‘hot’, :count => 100).each do |article| p article.url article.comments.each do |comment| p comment.body end end p reddit.subreddit(“programming”).articles1.author reddit.user(“radhruin”).comments(:count => 5).each do |comment| p comment.body end

REQUIREMENTS:

  • JSON >= 1.1.2

INSTALL:

  • sudo gem install bterlson-reddit —source=http://gems.github.com

LICENSE:

(The MIT License)

Copyright © 2008 FIX

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
‘Software’), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.