| web log in using python Hello
I am new to python programming. I want to do a project which calculates the broadband usage for a particular ISP. How can i get the pages after logging into a website?
i understand that i will have to use the urllib2 library. I have been trying to read the docs, but however i could not figure out how to use it's functions.
How can i pass username, password to a website and get the logged in webpage? also this site works only for IE, so i will have to set the user string too.
an equivalent code in perl is
$req = HTTP::Request->new( POST => $redir_base . "serviceResults.jsp" );
$req->content_type( 'application/x-www-form-urlencoded' );
$req->content( 'username=' . $username . '&queryDate=' . $year_month .
'&idAndName=&ispId=');
$res = $browser->request( $req );
How can I implement this in python?
Thank You
Prashanth |