• Atitit.数据采集器 dataspider


    Atitit.数据采集器 dataspider

     

     

    /atiplat_cms/src/com/attilax/WebInfoX.java  @dep

     

     

    http://cl.cmcher.com/thread0806.php?fid=16&search=&page=2

     

     

    /atiplat_cms/src/com/attilax/dataspider/TsaolyoNetDataSpider.java

     

    爬虫注意事项

    设置useragent as ff

    https的注意。。

     

     

    主要是因为Java自己的HttpURLConnection对SSL支持的不好,而且控制起来不太方便,而且HttpClient还支持抓取非信任的站点,别的实现方式貌似需要在代码中显式导入证书。

     

    作者:: 绰号:老哇的爪子 ( 全名::Attilax Akbar Al Rapanui 阿提拉克斯 阿克巴 阿尔 拉帕努伊 ) 汉字名:艾龙,  EMAIL:1466519819@qq.com

    转载请注明来源: http://www.cnblogs.com/attilax/

     

     

    需要override打三个函数

     

    public List<String> getpageUrls() 

    public List getArtListByPagehtml(String html) {

    public List<String> getPics_byHtml

     

    使用方法与参数

     

     

    TsaolyoNetDataSpider x = new TsaolyoNetDataSpider();

    // x.fileName=args[0];// "c:\r2.csv";

     

    x.picSaveDir = "c:\0picSaveDir";

    x.startPage = Integer.parseInt(System.getProperty("startPage", "1"));

    x.endPage = Integer.parseInt(System.getProperty("endPage"));

    ;

     

     x.exec();

  • 相关阅读:
    iOS重签名及问题总结
    安装class-dump
    UISearchController 很坑
    hashmap 之哈希冲突
    wait()与sleep()的区别
    docker之es+es-head+kibana+ik分词器安装
    MySQL很有用的命令
    分布式事务执行逻辑
    索引 创建原则
    合理使用存储引擎
  • 原文地址:https://www.cnblogs.com/attilax/p/5914777.html
Copyright © 2020-2023  润新知