An extension that allows a user to display all or some of their scrapy spider settings at runtime.
Project description
Scrapy Settings Log
An extension that allows a user to display all or some of their scrapy spider settings at runtime. It will add a logline with some or all settings for your spider in JSON compatible format.
Install
pip install scrapy-settings-log
Quick-Start
Add the following to your settings:
EXTENSIONS = {
'scrapy_settings_log.SpiderSettingsLogging': 999,
}
SETTINGS_LOGGING_ENABLED = True
When you run your spider you will see a debug log like below when spider is closing:
[scrapy_settings_log.scrapy_settings_log] INFO: {"SETTINGS_LOGGING_ENABLED": true, ...}
Additional Options
SETTINGS_LOGGING_REGEX
- Add a regular expression to only show some settings - for exampleSETTINGS_LOGGING_REGEX = "SPIDERMON"
will show settings with SPIDERMON in their name.SETTINGS_LOGGING_INDENT
- Add indentation to make log more human-readable.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scrapy-settings-log-1.1.tar.gz
(15.2 kB
view hashes)
Built Distribution
Close
Hashes for scrapy_settings_log-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d75fdd56d40f881c069d6e441ccaf268812a0f7ad357db205a6ea5c6bdea523 |
|
MD5 | e79896274bb3c88563b2e6e9d284d35a |
|
BLAKE2b-256 | 065205c015acbc1cf85cdf2539c65b44dfe658ba054bd977c24b9206cc4b962c |