0.4.0 • Published 9 months ago

@web-printer/xiaobot v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@web-printer/xiaobot

Warning

some pages may be need to login and pay to read, so you may need to login and pay to read before print.

小报童 xiaobot.net

Installation

pnpm i @web-printer/xiaobot
import { Printer } from "@web-printer/core"
import xiaobot from "@web-printer/xiaobot"

new Printer()
  .use(
    xiaobot({
      url: "https://xiaobot.net/p/pmthinking2022"
    })
  )
  .print("产品沉思录 | 2022")

Options

{
  /**
   * Url of the newsletter home page that you want to print
   * @example
   * - "https://xiaobot.net/p/pmthinking2022"
   */
  url: string
  /**
   * When the article list page has a lot of articles, you can set maxPages to limit, especially endless loading.
   * @default Infinity
   */
  maxPages?: number
  /**
   * Interval of each scroll
   * @default 500
   * @unit ms
   */
  interval?: number
}

License

MIT ©

0.4.0

9 months ago

0.3.0

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago