Skip to content

Instantly share code, notes, and snippets.

@bsmartt13
Created May 23, 2014 20:20
Show Gist options
  • Save bsmartt13/b839a9506e520af3877a to your computer and use it in GitHub Desktop.
Save bsmartt13/b839a9506e520af3877a to your computer and use it in GitHub Desktop.
output from google apps version of tldextract project
ninja:~ bsmartt$ curl "http://tldextract.appspot.com/api/extract?url=http://blogspot.com"
{"domain": "", "subdomain": "", "suffix": "blogspot.com", "tld": "blogspot.com"}
ninja:~ bsmartt$ curl "http://tldextract.appspot.com/api/extract?url=http://www.blogspot.com"
{"domain": "www", "subdomain": "", "suffix": "blogspot.com", "tld": "blogspot.com"}
ninja:~ bsmartt$ curl "http://tldextract.appspot.com/api/extract?url=http://herokuapp.com"
{"domain": "", "subdomain": "", "suffix": "herokuapp.com", "tld": "herokuapp.com"}
ninja:~ bsmartt$ curl "http://tldextract.appspot.com/api/extract?url=http://herokuapp.com"
{"domain": "", "subdomain": "", "suffix": "herokuapp.com", "tld": "herokuapp.com"}
ninja:~ bsmartt$ curl "http://tldextract.appspot.com/api/extract?url=http://www.herokuapp.com"
{"domain": "www", "subdomain": "", "suffix": "herokuapp.com", "tld": "herokuapp.com"}
ninja:~ bsmartt$ curl "http://tldextract.appspot.com/api/extract?url=http://www.www.herokuapp.com"
{"domain": "www", "subdomain": "www", "suffix": "herokuapp.com", "tld": "herokuapp.com"}
ninja:~ bsmartt$ curl "http://tldextract.appspot.com/api/extract?url=http://google.com"
{"domain": "google", "subdomain": "", "suffix": "com", "tld": "com"}
ninja:~ bsmartt$ curl "http://tldextract.appspot.com/api/extract?url=http://www.google.com"
{"domain": "google", "subdomain": "www", "suffix": "com", "tld": "com”}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment