Extracts data from Strathmore's AMS student's module using Puppeteer and Cheerio.
Currently supports:
- Attendance
- Dashboard
- My details
- Fees Statement
- Progress report
NB: Requires you to have access to the student's portal via a browser.
- Clone the repository and install the dependencies using yarn (or npm)
- Create a .env file similar to .env.sample
- The .env file is not required if arguments are passed via the run command. See usage.
- In development environment, alternative endpoints will need to be provided. See src/config/index.js
Run using npm start
.
Alternatively, yarn start --number=<your_number> --password=<your_password>
The data will be written to the output
folder.
yarn install
yarn test