Skip to content

Instantly share code, notes, and snippets.

@sandgate-dev
Created March 11, 2019 08:33
Show Gist options
  • Save sandgate-dev/467214cfbd8bcbadaa93361d61208df0 to your computer and use it in GitHub Desktop.
Save sandgate-dev/467214cfbd8bcbadaa93361d61208df0 to your computer and use it in GitHub Desktop.

Revisions

  1. sandgate-dev created this gist Mar 11, 2019.
    5 changes: 5 additions & 0 deletions get_url.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    import tldextract

    list = tldextract.extract('http://blog.ashiknesin.com/about')
    domain_name = list.domain + '.' + list.suffix
    # ashiknesin.com