Skip to main content

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 example SETTINGS_LOGGING_REGEX = "SPIDERMON" will show settings with SPIDERMON in their name.
  • SETTINGS_LOGGING_INDENT - Add indentation to make log more human-readable.

Project details


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 details)

Uploaded Source

Built Distribution

scrapy_settings_log-1.1-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file scrapy-settings-log-1.1.tar.gz.

File metadata

  • Download URL: scrapy-settings-log-1.1.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for scrapy-settings-log-1.1.tar.gz
Algorithm Hash digest
SHA256 62f06ca2692bc916b1a899e408fba22967289999e627cb8bd3e796076febb24b
MD5 486a01b014e7963e992b4a2e3ef4d2e2
BLAKE2b-256 f376be8582d8054c94988255ac0533f80b49d86aa7864affe43f34be5f21a517

See more details on using hashes here.

File details

Details for the file scrapy_settings_log-1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for scrapy_settings_log-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d75fdd56d40f881c069d6e441ccaf268812a0f7ad357db205a6ea5c6bdea523
MD5 e79896274bb3c88563b2e6e9d284d35a
BLAKE2b-256 065205c015acbc1cf85cdf2539c65b44dfe658ba054bd977c24b9206cc4b962c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page