Web Scraper for dynamic forms in python

前端 未结 2 1325
無奈伤痛
無奈伤痛 2021-01-07 00:25

I am trying to fill the form of this website http://www.marutisuzuki.com/Maruti-Price.aspx.

It consists of three drop down lists. One is Model of the car, Second is

2条回答
  •  Happy的楠姐
    2021-01-07 00:48

    I had the same issue with the tutorial, and this worked for me:

    item = mechanize.Item(br.form.find_control(name='searchAuxCountryID'),{'contents': '3', 'value': '3', 'label': 3})
    

提交回复
热议问题