Created
August 11, 2016 11:37
-
-
Save anonymous/a434f6a4d2014db450055a649351cfc3 to your computer and use it in GitHub Desktop.
This file contains 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
@agent = Mechanize.new | |
@agent.follow_meta_refresh = true | |
page = @agent.get('the facebook url . com') | |
form = @agent.page.form_with(:method => 'POST') | |
form.email = 'my email' | |
form.pass = 'my password' | |
puts page.link |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment