@@ -0,0 +1,1266 @@
+package test;%0A%0Aimport java.util.List;%0A%0Aimport news_type_mine_tool.HomePageMineUtil;%0A%0Apublic class TestHomePageMineUtil %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09System.setProperty(%22http.proxyHost%22,%2210.10.10.78%22);%0A%09%09System.setProperty(%22http.proxyPort%22,%228080%22);%0A%09%09%0A//%09%09String newsPageUrl = %22http://www.banyuetan.org/chcontent/sz/szgc/2015121/123434.html%22;%0A//%09%09String homePageUrl = %22http://www.banyuetan.org/chcontent/sz/szgc/index.html%22;%0A%09%09%0A//%09%09String newsPageUrl = %22http://urakanji.com/wp/5051/%22;%0A//%09%09String homePageUrl = %22http://urakanji.com/%22;%0A%09%09%0A//%09%09String newsPageUrl = %22http://developer.51cto.com/art/201501/464174.htm%22;%0A//%09%09String homePageUrl = %22http://www.51cto.com/%22;%0A%09%09%0A%09%09String newsPageUrl = %22http://www.moonmile.net/blog/archives/6782%22;%0A%09%09String homePageUrl = %22http://www.moonmile.net/blog/%22;%0A%09%09%0A//%09%09String newsPageUrl = %22http://opinion.people.com.cn/n/2015/0127/c1003-26459377.html%22;%0A//%09%09String homePageUrl = %22http://opinion.people.com.cn/%22;%0A%09%09%0A%09%09System.out.println(newsPageUrl);%0A%09%09%0A%09%09String newsPageReg = HomePageMineUtil.reglizeNewsPageUrl(newsPageUrl);%0A%09%09System.out.println(newsPageReg);%0A%09%09%0A%09%09List%3CString%3E newsList = HomePageMineUtil.getNewsList(homePageUrl, newsPageReg);%0A%09%09for(String newsUrl : newsList)%7B%0A%09%09%09System.out.println(newsUrl);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create TestHomePageMineUtil.java