stock-informer

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 9 Imported by: 0

README ¶

Informer Logo

made-with-Go Go Report Card Maintainability Test codecov go.dev reference

📈 Stock Informer

A small and simple DOM detection changer for when you're in desperate need of a new Nvidia graphics card or anything else that tickles your pickle.

Overview

  • ✅ Monitor multiple URLs to detect DOM changes.
  • ✅ Use a valid crontab selector to run monitoring jobs.
  • ✅ Integrates with SMTP email and Slack.
  • ✅ Easy use with Docker or running on bare metal.
  • ✅ Comprehensive HTTP client that follows redirects.
  • ✅ Extremely lightweight with few dependencies.

Why?

Installation

Informer can either be run in Docker or using the prebuilt binaries in the releases section.

Binary
Docker

Configuration

pages:
  - url: https://test.com # URL to monitor
    selector: .class-selector # DOM selector
    schedule: "* * * * *" # Run every minute
notify:
  email:
    address: smtp.gmail.com
    user: hello@hello.com
    password: password
  slack:
    token: token
    channel_id: id
Pages
Notifiers

Email:

Slack:

Docker

Roadmap

  • Add App Debug to the configuration to hide or show the log debug messages.
  • Add more notifiers, github.com/nikoksr/notify has been used as a package and there are an abundance of notification methods that can be used.
  • Call cron monitoring recursively to eradicate waiting for new change.
  • Validation on configuration struct.

Contributing

Please feel free to make a pull request if you think something should be added to this package!

Credits

Shout out to the incredible Maria Letta for her excellent Gopher illustrations.

Licence

Code Copyright 2023 Stock Informer. Code released under the MIT Licence.

Documentation ¶

The Go Gopher

There is no documentation for this package.

Directories ¶

Path Synopsis
mocks
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL