Programming

Facebook Twitter

Handling html forms with python mechanize and BeautifulSoup. In the post about emulating a browser in python with mechanize I have showed you how to make some basic tricks in the web with python, but I have not showed how to login a site and how to handle a session, with html forms, links and cookies.

handling html forms with python mechanize and BeautifulSoup

Here I will show it all for you, let’s see it. First, you must install some dependecies: Python Programming Language – Official Website. PHP: Hypertext Preprocessor.