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.

Files for scrapy-status-mailer, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size scrapy_status_mailer-0.3-py2.py3-none-any.whl (5.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page