-
-
Save anonymous/460c6319b327c86e3a0f 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
require 'mechanize' | |
require 'open-uri' | |
agent = Mechanize.new | |
agent.get("http://www.pouparbem.com/alqapps/ruby_standard.php") | |
form = agent.page.parser.css('form')[0] | |
agent.page.forms[0] | |
agent.page.forms[0].fields | |
agent.page.forms[0]["DATAHORA"] = "2015-08-29" | |
agent.page.forms[0]["PRIORIDADE"] = "1" | |
agent.page.forms[0]["IDCAMPANHA"] = "301" | |
agent.page.forms[0].submit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment