Configuration
Credentials and cache locations are centralized in
getscipapers_hoanganhduc.configuration. Key points:
Credential Sources
Environment variables such as
CROSSREF_EMAILandUNPAYWALL_EMAILcan be provided to avoid interactive prompts.JSON files at
~/.config/getscipapers/credentials.json(Linux/macOS) or%APPDATA%/getscipapers/credentials.json(Windows) are loaded when present.The
--non-interactiveflag forces the CLI to abort if credentials are missing instead of prompting for input.
Cache and Download Directories
The default cache directory is derived from the operating system and can be inspected via
configuration.get_cache_dir().Download targets default to
~/Downloads/getscipapersbut can be overridden with the--download-dirflag ingetpapers.
Token Management
API keys for Elsevier and Wiley can be set via environment variables or saved to
credentials files. The refresh helpers in configuration ensure these tokens
are reloaded each time a request is made rather than captured at import time.