CronShot​ 中间件 cronshot-local

码农软件 · 软件分类 · Node.js 扩展 · 2019-04-14 16:42:33

软件介绍

cronshot-local 是 CronShot 中间件,用来保存图片到本地文件系统。

安装

安装 CronShot

npm install cronshot

示例

var cronshot = require('cronshot'),
  middleware = {
    local: require('cronshot-local')
  };

// Local File Example
// ------------------
// Takes a screenshot of sports.yahoo.com,
// and saves the screenshot to the local file system
// Save Local File Example
cronshot.startCapturing({
  'url': 'http://sports.yahoo.com',
  'path': __dirname,
  'cronPattern': false,
  'saveMiddleware': [middleware.local],
}, function(err) {

  // optional callback function once all screenshots have been taken
  if (err) {
      console.error(err);
  }
});

本文地址:https://codercto.com/soft/d/3575.html

Math Adventures with Python

Math Adventures with Python

Peter Farrell / No Starch Press / 2018-11-13 / GBP 24.99

Learn math by getting creative with code! Use the Python programming language to transform learning high school-level math topics like algebra, geometry, trigonometry, and calculus! In Math Adventu......一起来看看 《Math Adventures with Python》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

随机密码生成器
随机密码生成器

多种字符组合密码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换