0.4.0 • Published 9 months ago

@web-printer/juejin v0.4.0

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

@web-printer/juejin

掘金 juejin.cn

Installation

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

new Printer()
  .use(
    juejin({
      url: "https://juejin.cn/?sort=weekly_hottest",
      maxPages: 10
    })
  )
  .print("掘金一周热门")

Options

{
  /**
   * Url of a article list page
   * @example
   * - "https://juejin.cn/frontend"
   * - "https://juejin.cn/tag/JavaScript"
   * - "https://juejin.cn/column/6960944886115729422"
   */
  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