Python program that validates an url against w3c markup validator

Fredrik Lundh fredrik at pythonware.com
Wed Nov 29 08:18:21 CET 2006


Fredrik Lundh wrote:

>  >>> f = urllib.urlopen("http://validator.w3.org/check?uri=" + uri)
>  >>> print f.headers

here's the specification, btw:

     http://validator.w3.org/docs/api.html

</F>




More information about the Python-list mailing list