GEEK MS NODE NOTIFIER
GeekMs node notifier is a project developed with Node using javascript ES6
The program queries the geek ms blog site and show a popup notification whenever a new post has been added.
UPDATE: Rss has been added to Geeks blogs and a new client for XML has been added to notifier.
To swap parsers (HTML or XML) use the config file:
module.exports = {
DEFAULT_TOAST_TITLE : "GeeksMs Notifier",
POST_STORE_PATH : "c:\\temp",
POST_STORE_FILE : "poststore.json",
CRAWL_INTERVAL : 300000,
DIRECTORY_PERMISION: "0744",
CLIENT: "xmlClient" // xmlClient for RSS parser and htmlClient for html parser
}
Current Clients:
htmlClient : {
parser: "GeekParser",
url: "http://geeks.ms/blogs"
},
xmlClient: {
parser: "GeekRSSParser",
url: "http://geeks.ms/rss/mainfeed"
}
Crawling interval, temporal store path and file can be configured in config/appConfig.js settings.
The following libraries have been used to create this project:
-
axios
-
cheerio
-
xml2js
-
node eventEmitter
-
fs
-
node-notifier
Installation:
npm install
npm install forever -g
forever start boot.js (To daemonize execution)