Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Parse domains using the TLD list maintained by publicsuffix.org

License

NotificationsYou must be signed in to change notification settings

jeffknupp/domain-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parse domains using the TLD list maintained by publicsuffix.org.

Domains are parsed into their TLD, SLD, and subdomains. TLDs like 'co.uk' arehandled properly. The list of possible TLDs is generated from publicsuffix.org.The first time the library is run, an HTTP request is made and a.tld.pickle fileis created. Subsequent runs don't make an HTTP request. Rather, they load thepickle file. If you want to refresh the list, simply delete the pickle file.

TODO

There are tests, but not enough. I'm hoping that if people find this usefulthey'll contribute test cases to the projects.

New in version 0.0.4

  • Usepylru and TLD_CACHE to speed up parsing in long-running programs

About

Parse domains using the TLD list maintained by publicsuffix.org

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp