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 spidermon logs.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.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for scrapy_settings_log-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8b759cef1b4f60b28c0251d8544c26b862a60046909106b674d0710232c6817 |
|
MD5 | 95e719254bdadf8ce3b37e64832d3c96 |
|
BLAKE2b-256 | 243a9ec1f0ac78aeaf9c0791b961da3a236c37249b2e9626e1a7e90338931d03 |