Skip to main content

Proper domain parser using TLD info from publicsuffix.org

Project description

# Python domain-parser

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

Domains are parsed into their TLD, SLD, and subdomains. TLDs like ‘co.uk’ are handled 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 file is created. Subsequent runs don’t make an HTTP request. Rather, they load the pickle 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 useful they’ll contribute test cases to the projects.

Project details


Release history Release notifications

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3.4

History Node

0.0.3.3

History Node

0.0.3.2

History Node

0.0.3.1

History Node

0.0.3

This version
History Node

0.0.2

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
domain_parser-0.0.2.tar.gz (2.8 kB) Copy SHA256 hash SHA256 Source None Apr 3, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page