下載網頁,或者監控的工具

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


跟着程序再進行分析

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章