Skip to main content

Send crawl reports from Scrapy spiders to Google Chat

Project description

scrapy-googlechat

Send crawl reports from Scrapy spiders to Google Chat

Usage

Create a webhook in Google Chat: https://developers.google.com/hangouts/chat/how-tos/webhooks

Within your Scrapy project, install the package:

pip install scrapy-googlechat

Register and configure the extension in settings.py:

EXTENSIONS = {
    ...
    'scrapy_google_chat.GoogleChatBot': 100,
    ...
}
...
GOOGLE_CHAT_WEBHOOK = 'YOUR_WEBHOOK'

# Optional: change the image displayed in Google Chat
GOOGLE_CHAT_IMAGE = 'https://img.icons8.com/ios/452/spider.png'

You're good to go. Happy crawling!

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

scrapy-googlechat-1.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

scrapy_googlechat-1.1-py3-none-any.whl (3.8 kB view hashes)

Uploaded 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