File: example.py

package info (click to toggle)
python-tld 0.13-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,008 kB
  • sloc: python: 12,972; sh: 119; makefile: 19
file content (17 lines) | stat: -rw-r--r-- 374 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from parser import GAEMozillaTLDSourceParser

from tld import get_tld

if __name__ == "__main__":
    print(
        get_tld(
            "http://www.google.co.uk", parser_class=GAEMozillaTLDSourceParser
        )
    )

    print(
        get_tld(
            "https://www.john.app.os.fedoraproject.org",
            parser_class=GAEMozillaTLDSourceParser,
        )
    )