Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ozakione/pagewatcher
https://github.com/ozakione/pagewatcher
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ozakione/pagewatcher
- Owner: OzakIOne
- Created: 2021-05-30T08:09:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-30T08:10:47.000Z (over 3 years ago)
- Last Synced: 2024-10-24T20:44:01.463Z (2 months ago)
- Language: JavaScript
- Size: 1.93 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Page watcher
This node script will watch a specific text pattern on a certain page
When the pattern will match, the page will be closed and the script may open the page on your browser and play the alarm sound if the user set it to true
# How to use
Open the `index.js` and change the pages URL and others options which are self explanitory. Options are an array of objects.
```js
{
URL: 'https://github.com/',
SELECTOR: 'h1',
PATTERN: 'Where the world builds software',
REFRESH_INTERVAL_MIN: 1,
openAlarm: false,
openURL: false,
}
````URL`, `SELECTOR`, `PATTERN`, `REFRESH_INTERVAL_MIN` or `REFRESH_INTERVAL_SEC` are mandatory
To start the program
```bash
git clone https://github.com/ozakione/pagewatcher
cd pagewatcher
npm i
# Change options as said above
node index.js
```# TODO
- [ ] cli arguments