Monitor the funds and other resources related to my prepaid SIM card account managed by Plus operator.
- Install yarn dependencies
yarn install
-
Install puppeteer OS dependencies. They are listed in
apt-packages
in this repo as well. -
Set all the env variables from
lib/config.js
file and start the server
yarn start
It's a regular scrapper, but to log in to the admin area we need not only a login/password but also a one-time password sent by SMS. The flow is following:
- Bot sends a request via Slack on a scheduled basis
- Once the request is approved, starts the headless Chrome and try to log in
- Meanwhile opens a Slack dialog waiting for a session password
- User receives the session password over SMS and types in the Slack dialog
- Headless Chrome uses the password and proceeds with the account checks.