Skip to content

Instantly share code, notes, and snippets.

@checchia
Last active July 1, 2020 15:53
Show Gist options
  • Save checchia/8b6b8bf470cad134820d6487f20d88a5 to your computer and use it in GitHub Desktop.
Save checchia/8b6b8bf470cad134820d6487f20d88a5 to your computer and use it in GitHub Desktop.
import sys, os, tldextract
def extrai_sld(dominio):
sld = tldextract.extract(dominio)
marca = sld.domain
return marca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment