So, I am making a program for batch converting street addresses to gps coordinates using mechanize and python. this is my first time using mechanization. I can select the form ("form2") on the page, but the text box on the form does not have a name. How to choose a text field so that mechanization can enter my text? I tried to select it by its identifier. this does not work.
br.select_form("Form2")
br.form["search"] = ["1 lakewood drive, christchurch"]
and here is the source code from the website.
<form name="Form2" >
or Type an <b>Address</b>
<input id="search" size="40" type="text" value="" >
<input type="button" onClick="EnteredAddress();" value="Enter" />
</form>
any help would be greatly appreciated.
source
share