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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

scrapy_status_mailer-0.3-py2.py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 2 Python 3

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