Skip to content

Instantly share code, notes, and snippets.

@mzemel
Created June 29, 2013 05:38
Show Gist options
  • Save mzemel/5889971 to your computer and use it in GitHub Desktop.
Save mzemel/5889971 to your computer and use it in GitHub Desktop.
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!
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
@DoubledNebula51
Copy link

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.

@blaze101010
Copy link

Please i need a working bot

Copy link

ghost commented Jul 11, 2019

What about proxy & UA spoofing integration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment