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
跟着程序再進行分析