Python - urlparse
2010-06-09
$ python
>>> from urlparse import text
>>> o = urlparse('http://www.example.com:80/%7Eme/test.html;jsessionid=id?a=b&c=d#tag')
>>> o
ParseResult(scheme='http', netloc='www.example.com:80', path='/%7Eme/test.html', params='jsessionid=id', query='a=b&c=d', fragment='tag')