简单的爬信息

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>
原文地址:https://www.cnblogs.com/zno2/p/4539192.html