question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create a CLI for setup a very basic spidermon monitors and notifications

See original GitHub issue

Some 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:open
  • Created 5 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
rennerochacommented, Mar 18, 2019

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.

1reaction
ejuliocommented, Mar 15, 2019

@riya-17 we are reviewing/merging one here https://github.com/scrapinghub/spidermon/pull/127 Feel free to give your thoughts as well

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found