org.jsoup.nodes.Element.getElementsByAttributeValueContaining()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(218)

本文整理了Java中org.jsoup.nodes.Element.getElementsByAttributeValueContaining()方法的一些代码示例,展示了Element.getElementsByAttributeValueContaining()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.getElementsByAttributeValueContaining()方法的具体详情如下:
包路径:org.jsoup.nodes.Element
类名称:Element
方法名:getElementsByAttributeValueContaining

Element.getElementsByAttributeValueContaining介绍

[英]Find elements that have attributes whose value contains the match string. Case insensitive.
[中]查找具有其值包含匹配字符串的属性的元素。不区分大小写。

代码示例

代码示例来源:origin: loklak/loklak_server

for(int i=0;i<infos.size();i++){
   info=infos.get(i);
  if (info.getElementsByAttributeValueContaining("href", "loc=infblog").size()==0) {
    profile=info.getElementsByAttributeValue("class","pt_detail").first().text().trim();
    obj.put("pro", profile);
      break;
    case "Domain Name\uff1a":
      if(info.getElementsByAttributeValueContaining("href", "loc=infdomain").size()!=0)
      profile=info.select("a").text();
      obj.put("Personaldomain", profile);

代码示例来源:origin: astamuse/asta4d

public Elements getElementsByAttributeValueContaining(String key, String match) {
  return originElement.getElementsByAttributeValueContaining(key, match);
}

相关文章

微信公众号

最新文章

更多

Element类方法