Skip to content

Instantly share code, notes, and snippets.

@jerodsanto
Created December 29, 2008 15:05
Show Gist options
  • Save jerodsanto/41285 to your computer and use it in GitHub Desktop.
Save jerodsanto/41285 to your computer and use it in GitHub Desktop.
30 12 * * * ruby /tmp/vote_for_github.rb
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