metalsmith-classeur

1.1.0 • Public • Published

metalsmith-classeur

nodei.co

npm

github-issues

stars

forks

metalsmith to scrape content from classeur

Highlights:

  • fancy async stream for api requests
  • super easy setup

See the annotated source or github repo

install

npm i --save github:leviwheatcroft/metalsmith-classeur

usage

example

Metalsmith('src')
.use(
  classeur({
    userId: 'aH7WHo2HQFrX5CHbGZx4',
    apiKey: '9aXKQnP2UjjEeSSUcyGCMAOhnm4Vsf8u',
    srcId: 'EKZEhM2Ju4EJHHeqNFOG',
    destPath: 'articles',
    invalidateCache: true
  })
)
.build( ... )

options

  • srcId {String} (required) id of classeur folder you wish to scrape (get this from the shareable url for the folder
  • destPath {String} (required) the path under which you want to place the scraped files
  • userId {String} (required) userId from classeur
  • apiKey {String} (required) apiKey from classeur

Author

Levi Wheatcroft levi@wht.cr

Contributing

Contributions welcome; Please submit all pull requests against the master branch.

License

Dependents (0)

Package Sidebar

Install

npm i metalsmith-classeur

Weekly Downloads

0

Version

1.1.0

License

MIT

Last publish

Collaborators

  • leviwheatcroft