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] 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.3.2.tar.gz
(15.2 kB
view details)
Built Distribution
File details
Details for the file scrapy-settings-log-1.3.2.tar.gz
.
File metadata
- Download URL: scrapy-settings-log-1.3.2.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2d025c9e043574a3fcd4d444f849719bb57989f285495684cc153b00c609721 |
|
MD5 | a04b10ca096bc84d9a76746c355a1951 |
|
BLAKE2b-256 | e112cd1b872ec3ffd834a6b73f63a0850e8ded01fcc5e22cc48291037a7e9702 |
File details
Details for the file scrapy_settings_log-1.3.2-py3-none-any.whl
.
File metadata
- Download URL: scrapy_settings_log-1.3.2-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ce6eac7fc475e4addcdbd123cc85b5ece1286b73751de5d48d2f85fe0b94db3 |
|
MD5 | e9479f33ea223f5a698bf49e748c5d96 |
|
BLAKE2b-256 | 64fddb749da840ae7afc76ae1239256ddc2384297e3a3f221c3b79029b1bf067 |