Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import mechanize
- import string
- import random
- a = mechanize.Browser()
- a.set_handle_robots(False)
- a.addheaders = [("User-agent","Mozilla/5.0")]
- site_name = input("Enter the site name here:")
- gitbot = a.open(site_name)
- a.select_form(nr=2)
- user_name = input("Enter username:")
- user_name = a["user[login]"]
- email = input("enter email:")
- email = a["user[email]"]
- password = input("enter password here:")
- password = a["user[password]"]
- sign_up = a.submit()
Add Comment
Please, Sign In to add comment