Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 838 Bytes

README.md

File metadata and controls

47 lines (29 loc) · 838 Bytes

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