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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file scrapy_status_mailer-0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for scrapy_status_mailer-0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ec63aeda1d1a5891508d6ef86025b6aaa27f1f9992717536434bbef4369fbbdb
MD5 2f40af28f596f66dc6e0a0e7d87ec5a9
BLAKE2b-256 1a25098da4fcb97cbc057c1c959f4af2a330e8742b5333c3a6e703a4d9262d9d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page