golang crawler parses the page to use the library

Use Golang parsing the page
parse html and xml documents Golang in common to the library are the following:

Provide support for regular expressions regexp library (go native language)
to provide support for CSS selectors github.com/PuerkitoBio/goquery
provide Xpath support gopkg.in/xmlpath.v2 library or github.com/antchfx/xquery library
provides JSON PATH support github.com/tidwall/gjson library

Guess you like

Origin www.cnblogs.com/golangxiong/p/11502576.html