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] DEBUG: {"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.0.1.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for scrapy-settings-log-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9a73c1497c7423d9b4799df37329e3bc54ad12198bf04eafa2918633c187af5 |
|
MD5 | a01e523f94e9c3dba8165bd9a2194b62 |
|
BLAKE2b-256 | 84596a23bd2f25050db9f39c16057033895dfa1ee24b013afa547e6a43b61540 |
Close
Hashes for scrapy_settings_log-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87ab431206504e005fff4c319d5b8d5b8f62d5f83bf9023a6d35dbca4b78ce73 |
|
MD5 | e6f70bf52c32bb5804f4b32dd06751db |
|
BLAKE2b-256 | 678420dd989d39526bf79ce9c6d08474b578338307ca7e4083f42ccc10d0ad5e |