用cyberneko.html.parsers.DOMParser解析网页时出现403错误
hbycx 2015-07-16 01:12:13 做网络爬虫用cyberneko.html.parsers.DOMParser解析网页时出错,代码如下
DOMParser parser=new DOMParser();
parser.parse(url);
Document doc=(Document) parser.getDocument();
出错Server returned HTTP response code: 403 for URL:http://www.douban.com/tag/2014/movie?start=0
前几个网页没问题,到后面就被禁止访问了,试了system.setProperty方法不行,求大神指教,最好直接上代码3333QQQQ!!