Spider - path conflict [../test.htm,www.nic.nl/index.html]

Jeff Epler jepler at unpythonic.net
Fri Apr 1 08:07:01 EST 2005


I think you want urllib.basejoin().

>>> urllib.basejoin("http://www.example.com/test/page.html", "otherpage.html")
'http://www.example.com/test/otherpage.html'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050401/46ab6263/attachment.sig>


More information about the Python-list mailing list