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
Built Distribution
File details
Details for the file scrapy-settings-log-1.0.2.tar.gz
.
File metadata
- Download URL: scrapy-settings-log-1.0.2.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 259901b87475adbd1208631b76e66dab1e5165050e525773fd7f1e9c5537ff0f |
|
MD5 | 8bebdaa7670e8af3727f8810c1eac866 |
|
BLAKE2b-256 | 1d0b6ee5e6d758576a100d1beb1a970ee693f79878e3a905736e7801cbedaab3 |
File details
Details for the file scrapy_settings_log-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: scrapy_settings_log-1.0.2-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 095ada23d60fd4de375d319ca7e6acad23baa695222218b25f9de2155009468a |
|
MD5 | 1cc30ecf366d371f9166d7fed666fce1 |
|
BLAKE2b-256 | 19d7b358c4412baa7e682dba0418abff4b80a7c70ae1c4edaeab7921b6bf0ac2 |