mercredi 12 août 2015

How to get next form content in python

This is my first script(also post) in python.

In script i filled form content and submit it. So After submitting form it will generate result on next form. Now the issue is next form link not static, it will changed according data entered in previous form. See below some code of my script

browser.select_form(nr=1)
browser.form["MyIDNO"] = '000D6F0004C46834'
browser.form["RuleID"] = '0109108301234567890A'
browser.submit()

Above code just fill data and submit it. Now i want next opened form content. I am getting dynamic link as below

http://ift.tt/1WhUjuu

As seen in above link, it will generated based on MyIDNO and RuleID.

Aucun commentaire:

Enregistrer un commentaire