Skip to main content

scrapy extension for spider monitor web framework cralwer-studio

Project description

CS-Sender

scrapy extension for spider monitor web framework cralwer-studio

Install

pip install cs-sender

Usage

Config following settings to settings.py of scrapy project

CS_BACKEND = http://localhost:8000
CS_API_TOKEN = '6452c52c4acee2044fe9d953467e6e45be1f367c'
EXTENSIONS = {
    'cs_sender.ScrapyMonitor': 802
}

Parameter


  • CS_API_TOKEN
    • description: The token of crawler-studio API
    • default: ''

  • CS_ENABLE_SEND_ERR_LOG
    • description: Whether send error log to crawler-studio
    • default: True

  • CS_ERR_LOG_BUFFER_SIZE
    • description: If error log buffer size larger than CS_ERR_LOG_BUFFER_SIZE, it will be sent to crawler-studio as a batch immediately, and the error log buffer will be empty
    • default: 500
    • pre-condition: CS_ENABLE_SEND_ERR_LOG set to True

  • CS_ERR_LOG_SEND_FREQ
    • description: The error logs will be sent to crawler-studio as a batch for every CS_ERR_LOG_SEND_FREQ seconds
    • default: 20 seconds
    • pre-condition: CS_ENABLE_SEND_ERR_LOG set to True

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

cs_sender-1.1.1.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file cs_sender-1.1.1.tar.gz.

File metadata

  • Download URL: cs_sender-1.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.4

File hashes

Hashes for cs_sender-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4d0d84fa58ff2e1f77bbbb15e5d66cbf8026d1f62cb42c82652e3c4bf32cdb86
MD5 c25b6bddedf822cb202ad6d8113e014a
BLAKE2b-256 ab2cc97c005551c2f7126e1b256b7c6482bda1f1269ef4c45483712da2a0c76d

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