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] DEBUG: {"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.0.1.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

scrapy_settings_log-1.0.1-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scrapy-settings-log-1.0.1.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

Hashes for scrapy-settings-log-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a9a73c1497c7423d9b4799df37329e3bc54ad12198bf04eafa2918633c187af5
MD5 a01e523f94e9c3dba8165bd9a2194b62
BLAKE2b-256 84596a23bd2f25050db9f39c16057033895dfa1ee24b013afa547e6a43b61540

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scrapy_settings_log-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87ab431206504e005fff4c319d5b8d5b8f62d5f83bf9023a6d35dbca4b78ce73
MD5 e6f70bf52c32bb5804f4b32dd06751db
BLAKE2b-256 678420dd989d39526bf79ce9c6d08474b578338307ca7e4083f42ccc10d0ad5e

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