Python program that validates an url against w3c markup validator

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Wed Nov 29 00:38:51 EST 2006


yaru22 wrote:

> I was looking at the python library and thought urllib or urllib2
> may be used to make this program work.
> 
> But I don't know how to send my urls to the w3c validator and get
> the result.

Another great alternative is using the Twisted framework:

<http://twistedmatrix.com/projects/core/documentation/howto/
index.html>
<http://twistedmatrix.com/documents/current/api/
twisted.web2.client.http.HTTPClientProtocol.html>

Once you get familiar with the style of Twisted code, it's quite
easy to many write clients and servers because most protocols are
already implemented and must only be adapted to your needs.

Regards,


Björn

-- 
BOFH excuse #40:

not enough memory, go get system upgrade




More information about the Python-list mailing list