macro-execution
This is a simple plug-in based on puppeteer.
Currently it supports macro download. It helps monitoring tasks status for macro downloading files from a virtual web page.
It also provides customized settings and pushes download progress for per task.
Please feel free to use it in javascript or typescript projects.
Install
- npm install macro-execution
Usage
Used in js projects:
let me = ; { let test = ; return test ;} let tasks = name: 'test link' // task name menuList: // nested menu wait to be clicked downloadPath: './Test' // the directory to download files downloadLink: // download link set, e.g. // linkInfo { // name: '' // waitSelector: '' // selector for download body // errorSelector: '' // selector for possible error // downloadLink: '' // selector for download link // } macroId: 'q1' // unique id for running tasks; ;
Used in ts projects:
;
Launch options
Parameters | default Value | Descriptions |
---|---|---|
site |
-- |
must be set: site to visit |
API
- Disconnect
test;
- Monitoring task status
testrunningSteam;
Coming soon
More supports is coming...
It's for open source learning.
Any questions please feel free to contact me.