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>