In mechanization, is there anyway rewriting url in POST in the form?

I am running a python script and I am using mechanize. The form I am trying to submit usually uses javascript to rewrite the URL on the POST, so I need to do the same manually to submit the form correctly. is this still being done?

+4
source share
2 answers

The mechanism does not handle Javascript. It is best to use a browser to handle Javascript - if you prefer to use it in Python, use PythonExt .

You can also try Selenium - seleniumhq.org. It is used to test websites, but can also submit forms.

+1
source

All Articles