# File: urlparse-example-1.py import urlparse print urlparse.urlparse("http://host/path;params?query#fragment")