英文:
CSS selector or HTML parser for go?
问题
有没有类似于fizzler、htmlagilitypack或beautifulsoup的go语言库?
我想在go语言中做类似于doc.load(html); aelements:=doc.SelectAll("a")
这样的操作。
英文:
Is there anything like fizzler, htmlagilitypack or beautifulsoup for go?
I want to do something like doc.load(html); aelements:=doc.SelectAll("a")
in go
答案1
得分: 6
有两个我知道的:
- http://godoc.org/code.google.com/p/go-html-transform/css/selector 是其中一个。
- https://github.com/PuerkitoBio/goquery 是另一个。
go-html-transform 还附带了一些工具,用于转换与选择器匹配的 HTML。
英文:
There are two that I know of:
- http://godoc.org/code.google.com/p/go-html-transform/css/selector is one.
- https://github.com/PuerkitoBio/goquery is another
go-html-transform also comes with some tools to transform the html that matches selectors.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论