views:

44

answers:

2

I'm running a python script and I'm using mechanize. The form i'm trying to submit normally uses javascript to rewrite the url to POST to, so to correctly submit the form i need to manually do the same. is there anyway of doing this?

+1  A: 

Mechanize doesn't process Javascript. The best way usually is to use browser to process Javascript - if you prefer do it in Python use PythonExt.

Also you can try Selenium - seleniumhq.org. It's used for web-site testing but can send forms too.

how