Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A simple ruby bot for Sublime-giveaway
# You will need to install Tor in order for this to work.
# Install from Tor's official website.
# Set your own 'lucky' URL here
#Create temporary 10 min email address and fetch the address
require 'rubygems'
require 'json'
new_mail_json_result = `curl`
email_addr = JSON.parse(new_mail_json_result)["email_addr"];
# Here you will need the Tor browser started/running! (Use start-tor-browser!)
# Create and use headless browser
require 'watir-webdriver'
browser =
browser.goto URL
browser.select_list(:id => 'giveaways_answer').select 'Sublime Text!!!'
browser.text_field(:id => 'giveaways_email').set email_addr
puts browser.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.