Created
November 21, 2011 19:35
-
-
Save nbryan/1383661 to your computer and use it in GitHub Desktop.
Nominate Adaptly for some useless TechCrunch Crunchie awards
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
#!/bin/ruby | |
require 'net/http' | |
require 'uri' | |
values = { | |
"form_1" => "Adaptly", # Best Technology Achievement | |
"form_17" => "Nikhil Sethi and Garrett Ullom (Adaptly)", # Founder of the Year | |
"form_18" => "Nikhil Sethi (Adaptly)", # CEO of the Year | |
"form_20" => "Adaptly" # Best Overall Startup of 2011 | |
} | |
uri = URI.parse("http://crunchies2011.techcrunch.com/wp-content/plugins/crunchies/nom.php") | |
values.each do |k, v| | |
response = Net::HTTP.post_form(uri, "cat" => k, "name" => v) | |
puts response.code | |
puts response.body | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with this command in Terminal:
curl https://raw.github.com/gist/1383661/eba09febc71395823f2ff59b5e653fa6b9b235fb/gistfile1.rb | ruby