{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:golang/github.com/%21puerkito%21bio/go%21query","name":"github.com/PuerkitoBio/goQuery","description":"Package goquery implements features similar to jQuery, including the chainable\nsyntax, to manipulate and query an HTML document.\n\nIt brings a syntax and a set of features similar to jQuery to the Go language.\nIt is based on Go's net/html package and the CSS Selector library cascadia.\nSince the net/html parser returns nodes, and not a full-featured DOM\ntree, jQuery's stateful manipulation functions (like height(), css(), detach())\nhave been left off.\n\nAlso, because the net/html parser requires UTF-8 encoding, so does goquery: it is\nthe caller's responsibility to ensure that the source document provides UTF-8 encoded HTML.\nSee the repository's wiki for various options on how to do this.\n\nSyntax-wise, it is as close as possible to jQuery, with the same method names when\npossible, and that warm and fuzzy chainable interface. jQuery being the\nultra-popular library that it is, writing a similar HTML-manipulating\nlibrary was better to follow its API than to start anew (in the same spirit as\nGo's fmt package), even though some of its methods are less than intuitive (looking\nat you, index()...).\n\nIt is hosted on GitHub, along with additional documentation in the README.md\nfile: https://github.com/puerkitobio/goquery\n\nPlease note that because of the net/html dependency, goquery requires Go1.1+.\n\nThe various methods are split into files based on the category of behavior.\nThe three dots (...) indicate that various \"overloads\" are available.\n\n* array.go : array-like positional manipulation of the selection.\n\n* expand.go : methods that expand or augment the selection's set.\n\n* filter.go : filtering methods, that reduce the selection's set.\n\n* iteration.go : methods to loop over the selection's nodes.\n\n* manipulation.go : methods for modifying the document\n\n* property.go : methods that inspect and get the node's properties values.\n\n* query.go : methods that query, or reflect, a node's identity.\n\n* traversal.go : methods to traverse the HTML document tree.\n\n* type.go : definition of the types exposed by goquery.\n\n* utilities.go : definition of helper functions (and not methods on a *Selection)\nthat are not part of jQuery, but are useful to goquery.\n\nThis example scrapes the reviews shown on the home page of metalsucks.net.","version":"v1.12.0","softwareVersion":"v1.12.0","license":"https://spdx.org/licenses/BSD-3-Clause","codeRepository":"https://github.com/PuerkitoBio/goQuery","issueTracker":"https://github.com/PuerkitoBio/goquery/issues","url":"https://github.com/PuerkitoBio/goQuery","programmingLanguage":{"@type":"ComputerLanguage","name":"Go"},"dateCreated":"2012-09-17","dateModified":"2026-03-15","datePublished":"2026-03-15","copyrightYear":2012,"downloadUrl":"https://proxy.golang.org/github.com/!puerkito!bio/go!query/@v/v1.12.0.zip","softwareHelp":{"@type":"WebSite","url":"https://pkg.go.dev/github.com/PuerkitoBio/goQuery#section-documentation"},"applicationCategory":"go","runtimePlatform":"go","developmentStatus":"active","sameAs":["https://pkg.go.dev/github.com/PuerkitoBio/goQuery"],"funder":[{"@type":"Organization","url":"https://github.com/sponsors/mna"},{"@type":"Organization","url":"https://www.buymeacoffee.com/mna"}],"https://www.w3.org/ns/activitystreams#likes":14695,"https://forgefed.org/ns#forks":928}