Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import re
  2. import mechanize
  3.  
  4. br = mechanize.Browser()
  5. br.open("http://example.com")
  6.  
  7. username = "1******a"
  8. password = "Hu*********3"
  9. site = br.open("http://example.com")
  10. br.select_form(nr=1)
  11. br.form['session[Client_username]'] = username
  12. br.form['session[Client_login_mode]'] = password
  13. br.submit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement