Created
June 29, 2013 05:38
-
-
Save mzemel/5889971 to your computer and use it in GitHub Desktop.
Reddit upvote bot
This file contains hidden or 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 |
Please i need a working bot
What about proxy & UA spoofing integration?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What if I just want to make it so that it only upvotes up to a certain amount when the vote count gets too low? For example, if vote < 5 then upvote. I don't want to bot the vote to get popular. I just want to bot enough votes to stop people from downvoting my posts. It's annoying to deal with.