You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 usetldextract
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 anamedtuple
liketldextract
module does, the later is preferred.The text was updated successfully, but these errors were encountered: