What can Faup do for me?

Extract various elements from an URL with no pain. The fields we get are: scheme, credential, subdomain, domain, host, tld, port, resource path, query string and fragment ('#'). Ever dreamed of giving urls to a command line tool doing it? Faup exists!

$ faup -f domain www.github.com
github.com

Why Yet Another URL Extraction Library?

Because they all suck. Find a library that can extract, say, a TLD even if you have
an IP address, or http://localhost, or anything that may confuse your regex so much
that you end up with an unmaintainable one.