Skip to content

Instantly share code, notes, and snippets.

@esampaio
Created July 29, 2011 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esampaio/1114642 to your computer and use it in GitHub Desktop.
Save esampaio/1114642 to your computer and use it in GitHub Desktop.
Fuckup Call4Paperz
require 'rubygems'
require 'mechanize'
user = 'blablcssa'
email = '@bla.com'
pass = 'blabla'
for i in 1..3 do
a = Mechanize.new
a.get('http://call4paperz.com/users/sign_up') do |page|
form = page.forms.first
form['user[name]'] = user + i.to_s
form['user[email]'] = user + i.to_s + email
form['user[password]'] = pass
form['user[password_confirmation]'] = pass
form.submit
a.get('http://call4paperz.com/events/1/proposals/9/like')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment