Finding Dynamic text value of static field using mechanize browser python -


how can find dynamic text per user details entered of static field result using mechanize browser in python. can using "split" function splitting text , storing text in variable. there function directly give me results as: name: abc addr: pqr gender: male

abc=mechanize.browser() abc.set_handle_robots(false) abc.open(url) abc._factory.is_html = true abc.select_form(nr=0) x=abc.submit() m=x.read() 

i tried using 'findall' not working well. here abc can name per login. data not of text box input values. appreciated.

this should tell field names:

for f in br.forms() print f.name 

fill in blanks:

form["field1"] = ["input1"] 

hope asking for. cheers!


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -