A site parser and api for the internet portal at Augustine University


Keywords
api, ava, js, node-fetch, node-js, npm-package, site-parser
License
MIT
Install
npm install clover-api@0.3.1

Documentation

🍀

Clover

A site parser and api for the internet portal at Augustine University

PR's welcome

Getting started

  1. Install with yarn
yarn add clover

or with npm

npm install clover

TL;DR

First off, i'd like to point out that clover is NOT, I repeat NOT a generic site parser, it was built with my Univerisity's internet portal applictaion in mind. That being said, if you'd like to use parts of the code to perhaps build your own, you're more than welcome to do so. This package will be especially useful to CS majors at AUI, it provides casses for parsing and identification of static html content received from the server as well as some nicer higher level abstractions like APIs for making POST and GET calls to the applications server. All these are exposed via a very clean and simple API. It is worthy of note however, that the this library uses raw string pattern matching to identify pages and this easily gets broken when the HTML served by the server changes. I will try to keep this package as updated as possible. If you find that the package doesn't work properly and you're sure it's an issue with page identification, simply send a PR adding detection support for the new pages as well as tests. That wasn't so long, now was it? 😊