📜  机械化 python 填充 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:58.545000             🧑  作者: Mango

代码示例3
import mechanize

            #This bot allows for autofill on the ShoezGallery Raffle.

            browser = mechanize.Browser()

            response = br.open("http://yeezy.shoezgallery.com/")

            br.addheaders = [("User-agent","Mozilla/5.0")] 

            url = "http://yeezy.shoezgallery.com/"

            browser.select_form(nr=0)

            browser.form['nom'] = Last name 

            browser.form['prenom'] = First Name

            browser.form['mail'] =  my email here

            browser.form['telephone'] = phone number here

            browser.form['taille'] = 4313

            browser.form['pays'] = Etats_Unis

            brower.submit()

            response = browser.open('http://yeezy.shoezgallery.com/')

            print response.read()