-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
setting PUBLIC_SUFFIX_LIST_URLS with environment variable #233
Comments
This would be extremely helpful for managed environments where https connections to the outside may not be possible. A container could be built with a current copy, and being able to provide this at the command line would be extremely helpful. |
#197 may be helpful in the meantime. Although it's CLI args, not an environment variable. |
I use Scrapy, which uses tldextract. I'd like to be able to set PUBLIC_SUFFIX_LIST_URLS, via an environment variable, to an empty array, so that it always either uses the cache or the snapshot. As of now, it seems to sometimes try to update the cache, and that request can fail. |
Ok, I see, I'm into this! Maybe add a |
For parity with the CLI, the parsed env var would specially handle local files. See these lines. |
PUBLIC_SUFFIX_LIST_URLS
now can only define with the function arguments, can this define by environment?The text was updated successfully, but these errors were encountered: