lxml question

Diez B. Roggisch deets at nospam.web.de
Thu Sep 10 05:01:36 EDT 2009


mattia wrote:

> I would like to click on an image in a web page that I retrieve using
> urllib in order to trigger an event.
> Here is the piece of code with the image that I want to click:
> <input type="image" style="border-width: 0px; height: 22px; width: 49px;"
> onclick="return checkPhoneField(document.contactFrm, 'mobile');"
> alt="sms" src="images/button_sms.bmp" id="smsToMobile" name="smsToMobile"/
>>
> 
> I don't know how to do it (I'm trying using lxml, but any suggestion can
> help).

Install something like HTTP-live-headers or Firebug and analyze what the
actual HTTP-requests are. Then model these.


Diez



More information about the Python-list mailing list