随笔分类 - 给爷爬
摘要:public static void downJDProductComment() throws IOException { String url = "https://club.jd.com/comment/productPageComments.action?productId=10001119
阅读全文
摘要:是不是所有练习爬虫的人都会去爬取商品信息。。。 下面是爬取京东上商品信息的代码(只爬取了一页数据) public void downJDProduct() throws IOException { String input = "辣条";// 以辣条为例,可以给这个方法加一个参数,这样就能接收用户输
阅读全文
摘要:在使用爬虫进行一些数据爬取的时候,难免会碰上IP被封的情况,因此提前做个准备,写了一个简单的程序先爬取一些代理IP。 public void downIP() throws IOException { // 需要爬取IP信息的网站地址 String url = "http://www.66ip.cn
阅读全文

浙公网安备 33010602011771号