随笔
文章平均质量分 73
bencpp
IIT,ILIFE!
展开
-
htmlunit爬取javascript、Ajax 动态生成的网页;jsoup解析XML文档
最近接到一个项目,需要爬取一个网站的生成的xml数据。 刚开始时,觉得这是一个非常容易的事情,以前也用过htmlunit爬取网站。但是写完代码发现连登陆都进不了,何谈爬取数据了。不说直接上代码: final WebClient webClient = new WebClient(BrowserVersion.INTERNET_EXPLORER_9);// 设置浏览器类型,由原创 2015-10-15 01:26:33 · 3352 阅读 · 0 评论 -
class "org.apache.commons.collections.FastHashMap"'s signer information does not match signer inform
net.sf.json.JSONException: java.lang.SecurityException: class "org.apache.commons.collections.FastHashMap"'s signer information does not match signer information of other classes in the same package原创 2016-03-03 21:47:59 · 3146 阅读 · 0 评论