1 br = mechanize.Browser()
2 br.addheaders = [("User-agent","Mozilla/5.0")]
3 response = br.open(url)
4
1 import mechanize
2
3 #This bot allows for autofill on the ShoezGallery Raffle.
4
5 browser = mechanize.Browser()
6
7 response = br.open("http://yeezy.shoezgallery.com/")
8
9 br.addheaders = [("User-agent","Mozilla/5.0")]
10
11 url = "http://yeezy.shoezgallery.com/"
12
13 browser.select_form(nr=0)
14
15 browser.form['nom'] = Last name
16
17 browser.form['prenom'] = First Name
18
19 browser.form['mail'] = my email here
20
21 browser.form['telephone'] = phone number here
22
23 browser.form['taille'] = 4313
24
25 browser.form['pays'] = Etats_Unis
26
27 brower.submit()
28
29 response = browser.open('http://yeezy.shoezgallery.com/')
30
31 print response.read()
32
1 browser = mechanize.Browser()
2 response = br.open("http://yeezy.shoezgallery.com/")
3