@Override
    public void run() {
        String html ;
         
        ImageInterface url = new BaiduImage();		//ImageInterface接口，自由替换
        for(;;) {
        	url.init();
            try {
            	if (Strings.isEmpty(url.getHtmlURL())){
            		break;
            	}
            	Response resp = Http.get(url.getHtmlURL());
            	if (resp.isOK()) {
            	    try {
                        html = resp.getContent();
                        if(html.equals(preHtml)) {
                            continue;
                        }
                         
                        preHtml = html;
                        
                        File savePathDir = new File(new File(ZZConfig.loaclFileDir).getAbsolutePath() +"\\" + url.getDirName());
                        
                        if (!savePathDir.exists()){
                        	savePathDir.mkdirs();
                        }
                        String savePath = savePathDir.getAbsolutePath();
                        
                        url.downImage(savePath,html);
                            
					} catch (Exception e) {
						continue;
					}
            	}
            	url.next();
            }catch(Exception e) {
                e.printStackTrace();
                break;
            }
        }
    }