Skip to content

Instantly share code, notes, and snippets.

@youpy
Created April 19, 2012 00:12
Show Gist options
  • Select an option

  • Save youpy/2417483 to your computer and use it in GitHub Desktop.

Select an option

Save youpy/2417483 to your computer and use it in GitHub Desktop.
require 'ubygems'
require 'grope'
id, user = ARGV
env = Grope::Env.new
env.load('http://shindanmaker.com/%s' % id)
env.find('//input[@class="shindanuser"]').value = user
env.document.getElementById('form').submit
env.document.title
puts env.find('//form[@id="forcopy"]/textarea').value.lstrip.rstrip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment