Submit without the use of a submit button, Mechanize?

Three ways: The first method is preferable if the form is submitted using the POST/GET method, otherwise you'll have to resort to second and third method. Submitting the form manually and check for POST/GET requests, their parameters and the post url required to submit the form. Popular tools for checking headers are the Live HTTP headers extension and Firebug extension for Firefox, and Developer Tools extension for Chrome.An example of using the POST/GET method: import mechanize import urllib browser = mechanize.Browser() #These are the parameters you've got from checking with the aforementioned tools parameters = {'parameter1' : 'your content', 'parameter2' : 'a constant value', 'parameter3' : 'unique characters you might need to extract from the page' } #Encode the parameters data = urllib.

Urlencode(parameters) #Submit the form (POST request). You get the post_url and the request type(POST/GET) the same way with the parameters.Browser. Open(post_url,data) #Submit the form (GET request) browser.

Open(post_url + '%s' % data) Rewrite the javascript and execute it in Python. Check out spidermonkey. Emulate a full browser.

Check out Selenium and Windmill.

Dabbling in a little bit of Javascript might help you here. If you're open to using Jquery: Read up more on post(), bind(), $(this), and val() here.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions