Create a CLI for setup a very basic spidermon monitors and notifications
See original GitHub issueSome simple prompt questions that help new comers to setup a basic spidermon installation in a easy and quick way.
$ spidermon setup
$ To who should I send the notification email: raphael@scrapinghub.com
$ Do you want to enable Slack Notifications [Y/n]: y
$ Please provide an Slack API key to send notifications: ab213234_cHJscaJRFVN
Thanks for enabling the amazing Spidermon! You're good to go.
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (6 by maintainers)
Top Results From Across the Web
create-notification — AWS CLI 1.27.23 Command Reference
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings. --cli-read-timeout (int). The maximum socket read time in ...
Read more >Spidermon Documentation
This tutorial shows how to set up Spidermon to monitor a spider to check if it extracted a minimum number of items.
Read more >create — OCI CLI Command Reference 3.22.0 documentation
Usage¶. oci monitoring alarm create [OPTIONS] ... A list of destinations to which the notifications for this alarm will be delivered.
Read more >Meet Spidermon: Our Battle Tested Spider Monitoring Library
Spidermon makes it easy to validate data, monitor spider statistics, and send notifications to everyone when things don't go well in an easy...
Read more >SIGALECT Smart Watch for Women (Call Make Receive and SMS ...
Buy SIGALECT Smart Watch for Women (Call Make Receive and SMS Notification) Smartwatch for Android and iOS Phones Fitness Tracker 1.72" Full Touch...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This CLI should be used by anyone that want to configure Spidermon quickly. I suggest the use of click to create the command.
Ask the user which built-in monitors they want to enable (and request the necessary settings):
Ask the user which built-in actions they want to enable (and request the necessary settings):
Ask the user if they want item validation (options JSON Schema or schematics).
In the end, a new monitors.py file should be created and project settings.py needs to be updated with the settings. If item validation was chosen, create an empty validators.py file or create a templa JSON Schema.
@riya-17 we are reviewing/merging one here https://github.com/scrapinghub/spidermon/pull/127 Feel free to give your thoughts as well