john-kurkowski/tldextract — Issue #6: Make other url's parts available
Author: mlen108
Created: 2012-02-23 22:40:17+00:00
State: open

Having given url:
xx.yyy.domain.com/path_me_somewhere.html

it would be nice if tldextract could also return the path (and other components) of the url.

for example, instead of this code
```python
url_parts = urlparse.urlparse(some_funny_url)
url = tldextract.extract("%s://%s" % (url_parts.scheme, url_parts.netloc))
url = "%s://%s.%s%s" % (url_parts.scheme, url.domain, url.tld, url_parts.path)
```

it could be as simple as this:
```python
url = tldextract.extract(some_funny_url)
url = "%s://%s.%s%s" % (url.scheme, url.domain, url.tld, url.path)
```

what do you think?