Skip to content

A simple tool for detecting context, filtering with conditions, and notifying with Gmail.

Notifications You must be signed in to change notification settings

PoChenKuo/context-checker-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Context checker and notification

A simple tool for detecting context, filtering with conditions, and notifying with Gmail.

Prerequisite

  • NodeJs 17.9.1
  • Google could platform project -- OAuth2.0 credentials

Configs

config.ini

[site]

href= your_target_page_url (eg. www.google.com)

target= css_selector (eg. body > table ...)

[email]

target=[email protected] (sender and receiver)

subject=email_subject

context= email context
__have__a__good__day.

[condition]

0=NOTHAS the_content_you_do_not_want_to_have_in_element

1=HAS the_content_you_do_want_to_have_in_element

2=HAS _the_content_you_do_want_to_have_in_element_2

...

credentials.json

  • download after OAuth 2.0 client id generated

token.json

  • auto-generate after first-time authorization.

Run

npm i
node app checker.js

About

A simple tool for detecting context, filtering with conditions, and notifying with Gmail.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published