-
classmethod splatnet3_scraper.query.QueryHandler.from_config_file(config_path=
None, *, prefix='') Creates a new instance of the class using a configuration file.
If the user does not provide a configuration file path, the default path will be used, which is
.splatnet3_scraperin the user’s current working directory. The configuration file this method accepts is one that aligns with the standard configuration file format used by the standard libraryconfigparsermodule. The configuration file must have a[Tokens]section, which only requires thesession_tokenoption to be set. Thesession_tokenoption must be set to the user’s session token. For a full list of all options that can be set in the config file, see the documentation for theConfigclass.- Parameters:¶
- config_path : str | None¶
The path to the configuration file. If None, the default configuration file path of
.splatnet3_scraperin the user’s current working directory will be used. Defaults to None.- prefix : str¶
The prefix to use for environment variables. This is useful if the user prefers to use both environment variables and configuration files. Defaults to “SN3S”.
- Returns:¶
QueryHandler – A new instance of the class using the configuration file provided, with all the options set in the configuration file.