zno2

简单的爬信息

excel txt Chrome Eclipse 

public static void main(String[] args) throws IOException {
        Document doc =  Jsoup.parse(new File("E:/wenben.txt"), "gbk");
        Elements es = doc.select("a");
        for(Element e:es){
            System.out.println(e.text());
        }
    }

pom.xml

<dependency>
            <groupId>org.jsoup</groupId>
            <artifactId>jsoup</artifactId>
            <version>1.7.3</version>     
        </dependency>

 

posted on 2016-08-05 18:28  zno2  阅读(154)  评论(0编辑  收藏  举报

导航