urlparse http://site.com/../../../page.html

Nikita the Spider NikitaTheSpider at gmail.com
Tue Apr 8 11:13:28 EDT 2008


In article 
<e04b6b7c-f607-418b-b741-26a61171925b at k1g2000prb.googlegroups.com>,
 "monk.e.boy" <johng at neutralize.com> wrote:

> I figured it out and blogged the answer:
> 
> http://teethgrinder.co.uk/blog/Normalize-URL-path-python/


Thanks for letting us know of a solution.

You might also be interested in Fourthought's URI library which contains 
a function called Absolutize() to do just what you're asking. It also 
claims to do a better job of parsing URIs than some of the functions in 
stock Python library. I've been using it heavily for quite a while and 
it has served me well.

http://4suite.org/

-- 
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more



More information about the Python-list mailing list