摘要: var xpath = require('xpath'); //引用xpath包 var dom = require('xmldom-silent').DOMParser;//引用xmldom包 var request=require('request'); var fs=require('fs'); var urlencode = require('urlencode');//引用url解码和... 阅读全文
posted @ 2016-05-11 15:54 公众号python学习开发 阅读(1345) 评论(0) 推荐(0) 编辑
摘要: 测试xpath的工具 http://www.freeformatter.com/xpath-tester.html#ad-output http://www.xpathtester.com/test 教程 http://www.w3school.com.cn/xpath/xpath_syntax.a 阅读全文
posted @ 2016-05-11 11:26 公众号python学习开发 阅读(1943) 评论(0) 推荐(0) 编辑
摘要: var fs = require('fs');var xpath = require('xpath');var dom = require('xmldom').DOMParser; // Read the file:var data = fs.readFileSync(file, { encodin 阅读全文
posted @ 2016-05-11 11:24 公众号python学习开发 阅读(915) 评论(0) 推荐(0) 编辑