github github
  • Home
  • Pricing and Signup
  • Training
  • Gist
  • Blog
  • Login

shuber / woot

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 2
  • Source
  • Commits
  • Network (2)
  • Issues (0)
  • Downloads (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Switch Branches (1)
    • master ✓
  • Switch Tags (1)
    • 0.1.0
  • Branch List
Sending Request…

Scrapes woot.com sites with ruby — Read more

  Cancel

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Remove gemcutter.org source from gem install instructions 
shuber (author)
Thu Jan 07 14:40:04 -0800 2010
commit  2afb65a86aba5211eff3
tree    d32b4f6551fe0c16fdbc
parent  4cff69ff0236e960ec73
woot /
name age
history
message
file .gitignore Loading commit data...
file MIT-LICENSE Thu Oct 29 18:34:40 -0700 2009 initial commit [shuber]
file README.rdoc
file Rakefile Tue Nov 03 21:57:23 -0800 2009 refactor [shuber]
file VERSION Tue Nov 03 21:57:48 -0800 2009 Version bump to 0.1.0 [shuber]
directory lib/
directory test/ Tue Nov 03 23:09:58 -0800 2009 add Woot#to_h [shuber]
file woot.gemspec Tue Nov 03 21:58:08 -0800 2009 bump version [shuber]
README.rdoc

woot

Scrapes woot.com sites

Installation

  gem install woot

Usage

Simply call Woot.new and optionally specify the woot subdomain (e.g. www, shirt, kids, wine, etc). Defaults to www.

  woot = Woot.new
  puts woot.title
  puts woot.price

  woot = Woot.new(:shirt)
  puts woot.title

  puts woot.to_h[:title]

You can also receive live Woot updates using Twitter’s Streaming API (See apiwiki.twitter.com/Streaming-API-Documentation). Simply call Woot.stream with your Twitter username, password, and a block.

  Woot.stream('your-twitter-username', 'your-twitter-password') do |woot|
    puts "#{woot.subdomain}: #{woot.title}"
  end

Call Woot.stop to stop streaming.

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don’t break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but
     bump version in a commit by itself I can ignore when I pull)
    
  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright © 2009 Sean Huber. See MIT-LICENSE for details.

Dedicated Server Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
  • Blog
  • Support
  • Training
  • Job Board
  • Shop
  • Contact
  • API
  • Status
  • © 2010 GitHub Inc. All rights reserved.
  • Terms of Service
  • Privacy
  • Security
  • English
  • Deutsch
  • Français
  • 日本語
  • Português (BR)
  • 中文
  • See all available languages

Your current locale selection: English. Choose another?

  • English
  • Afrikaans
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska
  • 中文