Created
December 29, 2008 15:05
-
-
Save jerodsanto/41285 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 12 * * * ruby /tmp/vote_for_github.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'mechanize' | |
agent = WWW::Mechanize.new | |
page = agent.get('http://vote.crunchies2008.techcrunch.com/votes/new?category_id=2&nominee_id=8') | |
form = page.forms.first | |
submit = form.button_with(:name => 'commit') | |
agent.submit(form,submit) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment