Skip to content

Instantly share code, notes, and snippets.

@takuya

takuya/aeon-wifi.rb

Created Mar 24, 2018
Embed
What would you like to do?
require 'mechanize'
m = Mechanize.new
m.get 'http://t.co'
return if m.page.uri.to_s =~ %r'^https?://t.co'
m.page.forms[0].submit
m.page.form( :action=> /email/ )
f = m.page.form( :action=> /email/ )
f.field( :type => /mail/ ).value = 'yormail@example.com'
f.submit()
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.