-
Notifications
You must be signed in to change notification settings - Fork 152
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
Any way to isolate the subdomain? #106
Comments
Unfortunately there's currently no reliable way to isolate the subdomain because In the future, I'll add full TLD support to furl. In the interim, splitting and rejoining the host by periods ( >>> from furl import furl
>>> f = furl('http://test.subdomain.example.com/')
>>> tld = f.host.split('.')[-1]
>>> tld
'com'
>>> subdomain = '.'.join(f.host.split('.')[:-2])
>>> subdomain
'test.subdomain' Does this suffice for your needs for now? |
Resolution of this Issue tied with the resolution of #110. |
Hi,
Is there a
furl
attribute for the subdomains in URLs - e.g. the['www']
and['test','subdomain']
above?The text was updated successfully, but these errors were encountered: