We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try this example, as I believe there is a bug with a dash. Note that all I did was change "compute-1" to "compute1" and then it works as expected.
>>> from publicsuffixlist import PublicSuffixList >>> psl = PublicSuffixList() >>> psl.privatesuffix('ec2-107-21-74-29.compute-1.amazonaws.com') >>> psl.publicsuffix('ec2-107-21-74-29.compute-1.amazonaws.com') 'ec2-107-21-74-29.compute-1.amazonaws.com' >>> psl.publicsuffix('ec2-107-21-74-29.compute1.amazonaws.com') 'com' >>> psl.privatesuffix('ec2-107-21-74-29.compute1.amazonaws.com') 'amazonaws.com'
The text was updated successfully, but these errors were encountered:
My bad, I guess they do specify it:
https://github.com/publicsuffix/list/blob/master/public_suffix_list.dat#L10694
Closing.
Sorry, something went wrong.
No branches or pull requests
Try this example, as I believe there is a bug with a dash. Note that all I did was change "compute-1" to "compute1" and then it works as expected.
The text was updated successfully, but these errors were encountered: