Skip to content
New issue

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

Utility method to get various parts of the SURT URI #3

Open
ibnesayeed opened this issue Nov 20, 2014 · 0 comments
Open

Utility method to get various parts of the SURT URI #3

ibnesayeed opened this issue Nov 20, 2014 · 0 comments

Comments

@ibnesayeed
Copy link
Member

One the features that I would appreciate if included is to have some utility methods to query different parts of the URL. Currently it only has one method available that takes any URL as an argument and returns a string representation of the URL in the SURT format. I know it uses tldextract module that does these things already. Now if I want to convert a URL in SURT format as well as know various segments of the URL separately, then I will have to either split the SURT representation in my code a few times and get the segments or use tldextract module, that will cause the same URL being passed to that module twice. The way I would like the utility method(s) to work is either making one getter method for each segment, or simply have one method that returns a namedtuple like tldextract module does, the later is preferred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant