简体   繁体   English

CSS选择器还是HTML解析器?

[英]CSS selector or HTML parser for go?

Is there anything like fizzler, htmlagilitypack or beautifulsoup for go? 是否有像fizzler,htmlagilitypack或beautifulsoup这样的东西?

I want to do something like doc.load(html); aelements:=doc.SelectAll("a") 我想做类似doc.load(html); aelements:=doc.SelectAll("a")事情doc.load(html); aelements:=doc.SelectAll("a") doc.load(html); aelements:=doc.SelectAll("a") in go doc.load(html); aelements:=doc.SelectAll("a")转到

There are two that I know of: 我知道有两个:

go-html-transform also comes with some tools to transform the html that matches selectors. go-html-transform还附带一些工具来转换与选择器匹配的html。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM