jpptr

a json syntactic sugar for execute puppeteer 一个使用 json 语法糖去执行 puppeteer 的框架

MIT License

Downloads
4
Stars
5

Jpptr

中文 | English

Document | API | Sample

a json syntactic sugar for execute puppeteer. Jpptr use json to execute puppeteer, just as you can use javascript to execute puppeteer.

  • you can extend the functionality as much as you want.
  • you can dynamically add and modify events.
  • and more...

Example

["goto","https://example.com"]

parse to

{
    "use":"function",
    "name":"goto",
    "args":["https://example.com"]
}

finally

page.goto("https://example.com")

Document

https://enncy.github.io/jpptr-docs/

API

https://github.com/enncy/jpptr/blob/main/docs/api.md

Sample

https://github.com/enncy/jpptr/tree/main/sample