mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-20 13:58:42 +00:00
18 lines
356 B
Markdown
18 lines
356 B
Markdown
![]() |
tldextract
|
||
|
==========
|
||
|
|
||
|
[tldextract][1] accurately separates a URL's subdomain, domain, and public
|
||
|
suffix, using the Public Suffix List (PSL).
|
||
|
|
||
|
## Tutorial
|
||
|
|
||
|
```bash
|
||
|
# Create an alias
|
||
|
$ alias tldextract='docker run --rm -u $(id -u):$(id -g) vimagick/tldextract'
|
||
|
|
||
|
# Run it
|
||
|
$ tldextract -j www.google.com
|
||
|
```
|
||
|
|
||
|
[1]: https://github.com/john-kurkowski/tldextract
|