从 Google 个搜索结果中获取简短描述部分

Get short description part from Google search results

我使用 jsoup HTML 解析器来过滤 URLs。我还想从结果列表中获得简短的描述,如下所示:

Stack Overflow is a privately held website, the flagship site of the Stack Exchange Network, created in 2008 by Jeff Atwood and Joel Spolsky, as a more open ...

过滤方法见上URL

    Elements links = doc.select("a[href]");
    for (Element link : links) {

        String temp = link.attr("href");        
        if(temp.startsWith("/url?q=")){
                            //use regex to get domain name
            result.add(getDomainName(temp));
        }

    }

您需要 google 结果中出现的内容的元描述。

这个问题就是你要找的: Get title, meta description content using URL

或者具体来说,这个答案: