public void getNewsLink( String url, Config config, String encode ) {
        Document doc = null;
        try {
            doc = getDocument(url, encode);
            Element sourceEle = doc.select(config.ruleSource.sourceEle).first();
            Elements newsEles = sourceEle.select(config.ruleSource.sourceEles);

            for ( Element newsEle:newsEles ) {
                try {
                    String newsLink = "";
                    if (encode.equals("UTF-8"))
                        newsLink = newsEle.attr("abs:href");     //获取新闻网页链接
                    else if (encode.equals("GBK")) {
                        newsLink = newsEle.attr("href");
                        newsLink = url.substring(0, url.lastIndexOf('/') + 1) + newsLink;
                    }

                    if (newsLink.contains("?div"))
                        newsLink = newsLink.substring(0, newsLink.indexOf('?'));
                    if (urlSet.contains(newsLink))
                        continue;
                    urlSet.add(newsLink);
                    saveData.dataInfo.source = newsLink;
                    getNewsInfo(newsLink, config, encode);
                }catch (Exception e) {
                    ByteArrayOutputStream baos = new ByteArrayOutputStream();
                    e.printStackTrace(new PrintStream(baos));
                    NewsEyeSpider.logger.debug(baos.toString());
                }
            }
        }catch (Exception e) {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            e.printStackTrace(new PrintStream(baos));
            NewsEyeSpider.logger.debug(baos.toString());
        }
    }