python - HTML processing - need tips

Gabriel Genellina gagsl-py at yahoo.com.ar
Mon Aug 7 20:43:02 EDT 2006


At Monday 7/8/2006 20:58, wipit wrote:

>I need to process a HTML form in python. I'm using urllib2 and
>HTMLParser to handle the html. There are several steps I need to take
>to get to the specific page on the relevant site the first of which is
>to log in with a username/password. The html code that processes the
>login consists of 2 edit boxes (for User ID and Password) and a Submit
>button which uses ASP.net client side validation as follows (formatted
>for clarity):

Another approach would be using HTTPDebugger 
<http://www.softx.org/debugger.html> to see exactly what gets 
submitted, and then build a compatible Request.
On many sites you don't even need to *get* the login page -nor parse 
it-, just posting the right Request is enough to log in successfully.



Gabriel Genellina
'@'.join(('gagsl-py','.'.join(('yahoo','com','ar'))))


	
	
		
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas




More information about the Python-list mailing list