Absolute TO Relative URLs
Satheesh Babu
vsbabu at erols.com
Tue May 8 13:48:52 EDT 2001
Hi,
Let us say I've an HTML document. I would like to write a small Python
script that reads this document, goes through the absolute URLS (A HREF, IMG
SRC etc) and replaces them with relative URLs. I can pass a parameter which
specifies the BASE HREF of the document.
I'm not sure whether I should proceed with regex nightmare or are there any
easy solutions?
Any help/pointers will be greatly appreciated.
Thanks
--
v.s.babu
vsbabu at erols.com
http://vsbabu.csoft.net
More information about the Python-list
mailing list