【爬虫工具方法】根据属性得到一条HTML标签的一个属性值
工具方法:public static String getValueByKeyInHtml(String src, String key) {
Pattern pattern = Pattern.compile("(?:" + key + "\\s*=\\s*)" + "['\"](.*?)['\"]");
Matcher matcher = pattern.matc
原创
2017-12-10 11:26:28 ·
1098 阅读 ·
0 评论