0
我使用下面的代碼: -無法用機械化登錄到rottentomatoes.com
require 'rubygems'
require 'mechanize'
agent = Mechanize.new
agent.get("https://www.rottentomatoes.com/user/account/login/") do |login_page|
inside_page = login_page.form_with(:action => 'https://www.rottentomatoes.com/user/account/login/') do |f|
f.login_username = "[email protected]"
f.login_password = "123456"
end.click_button
end
你得到了什麼錯誤? – markthethomas