bterlson / reddit

An interface to the Reddit API

This URL has Read+Write access

bterlson (author)
Wed Sep 17 13:09:30 -0700 2008
commit  78b9152085900b7cc7973a0dd4425c54670e7062
tree    c634ec1b2320ff62ce9ae7a8871369191f4f2fdc
parent  3c9f45d84d5b64e7e82876072351288169702926
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 Loading commit data...
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

== 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.