Skip to content

Instantly share code, notes, and snippets.

require 'watir-webdriver'
puts "Please enter a user"
user = gets
user.chomp!
profile = Selenium::WebDriver::Firefox::Profile.new
#profile.proxy = Selenium::WebDriver::Proxy.new :http => '127.0.0.1:8118'
b = Watir::Browser.new :firefox, :profile => profile
@mzemel
mzemel / reddit.rb
Created June 29, 2013 05:38
Reddit upvote bot
#This script requires ruby and the watir-webdriver gem (http://watirwebdriver.com/)
#When you enter a username, it will upvote all of their comments/posts
#You may get IP-banned
require 'watir-webdriver'
puts "Please enter a user"
user = gets
user.chomp!