Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- require 'mechanize'
- LOGIN = ''
- PASS = ''
- agent = Mechanize.new
- agent.get('https://www.linux.org.ru/login.jsp') do |page|
- form = page.form_with(:action => 'https://www.linux.org.ru//login_process') do |f|
- f.nick = LOGIN
- f.passwd = PASS
- end.click_button
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement