-
-
Notifications
You must be signed in to change notification settings - Fork 212
Open
Description
- Delete the cache if it exists (
~/.cache/python-tldextract/) - Initialize and use tldextract with the list from a file:
import tldextract; tldextract.TLDExtract(suffix_list_urls=("file:///usr/share/publicsuffix/public_suffix_list.dat",))("debian.org") - Notice that
~/.cache/python-tldextract/is created or that tldextract logs a warning on read only systems
I think that it makes little sense to copy the specified file to cache. It does however create several issues:
- On read only systems cache needs to be explicitly disabled to avoid warnings
- More importantly, modifications in the suffix file don't immediately affect the results of tldextract leading to a lot of confusion
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels