internetarchive / internetarchive/surt
Utility method to get various parts of the SURT URI
- Dominant language
- Python
- Stars
- 47
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.