-
auth using local db based on username and password
-
aka Libowski-bot, automating a couple frequent activities:
- looking for items recently ordered by the library to be first to reserve for a shorter wait once the library gets the item
- checking for "best seller" aka "new release" items currently on the shelf
-
Install
npm install
-
Start
npm start
-
Once started, cron jobs will run periodically, or you can test for a response:
curl localhost:8008
- nodejs - js runtime
- dotenv
- express - http server
- lowdb - database
- pino - logger
- node-fetch - request lib
- cheerio - html parser
- node-cron - cron scheduler
- discord.js - discord api library
- Scape items from newly acquired page
- Send notification at noon and 6pm with all on order items, if there are any new ones
- manually invoke with this endpoint
/on-order
- Scrape ids from now available page
- Scrape availability of wish list items for local branches
- Send notification indicating which local branches have item on shelf now, if any
- manually invoke with this endpoint
/available-now
- manage wish list of keywords through these endpoints
/wish-list/add-to-wish-list/:keywords/remove-from-wish-list/:keywords
- responses from available now scraping will be filtered by the wish list keyword(s) in the item titles
- using node-cron to periodically scrape library items
- send notifications if wish list items are available now or send all on order items