How to automate browsing using python?

kush87 picture kush87 · Aug 18, 2009 · Viewed 106.5k times · Source

suppose, I need to perform a set of procedure on a particular website say, fill some forms, click submit button, send the data back to server, receive the response, again do something based on the response and send the data back to the server of the website. I know there is a webbrowser module in python, but I want to do this without invoking any web browser. It hast to be a pure script.

Is there a module available in python, which can help me do that?
thanks

Answer

arcanum picture arcanum · Aug 18, 2009

You can also take a look at mechanize. Its meant to handle "stateful programmatic web browsing" (as per their site).