方法一:
URL url = new URL(pageUrl);
URLConnection conn = url.openConnection();
parser = new Parser(conn);
NodeList list = parser.parse(new TagNameFilter("a"));
方法二:
HTMLLinkBean htmlLinkBean = new HTMLLinkBean();
htmlLinkBean.setURL("http://www.sohu.com");
URL[] urls = htmlLinkBean.getLinks();