func (b baiduNews) findP(html *goquery.Selection) *goquery.Selection { if html.Is("body") { return html } else if result := html.Parent().Find("p"); len(result.Nodes) == 0 { return b.findP(html.Parent()) } else { return html.Parent() } }