Node.js 的网页浏览扩展 Horseman

码农软件 · 软件分类 · Node.js 扩展 · 2019-04-14 22:12:08

软件介绍

Horseman 是一个 Node.js 扩展模块,利用 PhantomJS 实现直接链式 API 和方便理解的控制流来实现无需图形化界面的网页浏览和数据获取。

示例代码:

var Horseman = require("node-horseman");
var horseman = new Horseman();

var projects = ['nodejs',
    'jquery',
    'tomcat',
    'mysql',
    'docker',
    'j2cache',
    'runjs',
    'git'];

projects.forEach( function( p ){
  var data = horseman
  .open('http://www.oschina.net/p' + p)
  .text('div.soft_collect_count');
  console.log( p + ': ' + data );
});

安装方法:

 npm install node-horseman

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

Game Engine Architecture, Second Edition

Game Engine Architecture, Second Edition

Jason Gregory / A K Peters/CRC Press / 2014-8-15 / USD 69.95

A 2010 CHOICE outstanding academic title, this updated book covers the theory and practice of game engine software development. It explains practical concepts and techniques used by real game studios,......一起来看看 《Game Engine Architecture, Second Edition》 这本书的介绍吧!

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

在线压缩/解压 HTML 代码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具