Skip to main content

Scrapy Status Mailer: Status mailer extension for Scrapy

Project description

Send an email when a crawler finishes or breaks.

Install

The quick way:

pip install scrapy-status-mailer

Or install from GitHub:

pip install git+git://github.com/light4/scrapy-status-mailer.git@master

Or checkout the source and run:

python setup.py install

settings.py

settings for send email

  1. 163
  2. qq
  3. gmail
STATUSMAILER_RECIPIENTS = []
STATUSMAILER_COMPRESSION = 'gzip'
# STATUSMAILER_COMPRESSION = None

MAIL_FROM = ''
MAIL_HOST = 'smtp.qq.com'
MAIL_PORT = 465
MAIL_USER = ''
MAIL_PASS = ''
MAIL_TLS = True
MAIL_SSL = True

EXTENSIONS = {
    'scrapy_status_mailer.StatusMailer': 80,
}

# all bots send email by default
# BOTS_SEND_EMAIL = ['first_bot', 'second_bot']

Thanks

stackoverflow

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
scrapy_status_mailer-0.3-py2.py3-none-any.whl (5.5 kB) Copy SHA256 hash SHA256 Wheel py2.py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page