Before starting, generate dev/connection_dump.json
and dev/credential.json
(or, just modify dev/index.ts
which will need those two files to be present).
Both files definition can be checked in src/connection.ts
.
dev/connection_dump.json
:
{
"cookies": "",
"isLoggedIn": false
}
dev/credential.json
:
{
"username": "myusername",
"password": "secretKey"
}
Then, import Driver
from src/index.ts
. Initialize Driver
with credential
then call it's method. Login can also (and should) be enforced before attempting
to call any other method to make sure initial request and resource is not wasted
because of bad session.
To be added.
This project is using rehype of unified system to parse HTML into unist
or unified syntax tree then traverse it to collect data from prodeskel.
Generated using TypeDoc