pmui:https://github.com/fouber/pmui

An UI wrapper of page-monitor, to show webpage history captures and diff them.


page-monitor: https://github.com/fouber/page-monitor

监视页面变化


都来源于这个phantomjs http://phantomjs.org/download.html

用法看文档,可以抓取js


以前写的一个下载页面的例子:

var page = require('webpage').create();
page.open('http://yoursite.com/index.php', function (status) {
//Page is loaded!
if (status !== 'success') {
console.log('');
} else {
console.log(page.content);
}
phantom.exit();
});

写成bat文件,另存为本地文件

@echo off
echo downloading...
d:
cd D:\mywork\
phantomjs.exe download.js > index.html
echo write file success


跟着程序再进行分析