Created
June 29, 2013 05:38
-
-
Save mzemel/5889971 to your computer and use it in GitHub Desktop.
Reddit upvote bot
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
#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! | |
b = Watir::Browser.new | |
b.goto 'reddit.com' | |
b.text_field(:name => 'user').set 'sillyupvotebot1' | |
b.text_field(:name => 'passwd').set 'botpassword' | |
b.button(:type => 'submit').click | |
b.text_field(:name => 'user').wait_while_present | |
b.goto 'reddit.com/u/' + user | |
b.divs(:class => 'arrow up').each do |down| | |
down.click | |
end |
What about proxy & UA spoofing integration?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please i need a working bot