https://github.com/PuerkitoBio/goquery
goquery html-parsing jquery selector-strings
Last synced: about 1 month ago
Repository metadata:
A little like that j-thing, only in Go.
- Host: GitHub
- URL: https://github.com/PuerkitoBio/goquery
- Owner: PuerkitoBio
- License: bsd-3-clause
- Created: 2012-08-29T02:14:59.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-10-09T00:20:24.000Z (2 months ago)
- Last Synced: 2024-10-29T19:58:34.317Z (about 2 months ago)
- Topics: goquery, html-parsing, jquery, selector-strings
- Language: Go
- Size: 548 KB
- Stars: 14,023
- Watchers: 252
- Forks: 917
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
-
Funding.yml:
- Github: mna
- Custom: https://www.buymeacoffee.com/mna
- Funding Links:
Owner metadata:
- Name: PuerkitoBio
- Login: PuerkitoBio
- Email:
- Kind: organization
- Description:
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/26605401?v=4
- Repositories: 6
- Last Synced at: 2024-04-16T00:04:18.406Z
- Profile URL: https://github.com/PuerkitoBio
- Sponsor URL:
Committers metadata
Last synced: about 1 month ago
Total Commits: 341
Total Committers: 52
Avg Commits per committer: 6.558
Development Distribution Score (DDS): 0.264
Commits in past year: 30
Committers in past year: 9
Avg Commits per committer in past year: 3.333
Development Distribution Score (DDS) in past year: 0.533
Name | Commits | |
---|---|---|
Martin Angers | m****s@g****m | 251 |
Andrew Stone | a****w@c****m | 13 |
dependabot[bot] | 4****] | 8 |
Jauder Ho | j****o | 5 |
tnt | a****x@g****m | 3 |
amikai | a****8@g****m | 3 |
Noyb Cybot | n****b@c****m | 3 |
David Wilkins | d****e@s****m | 3 |
Anthony Gedeon | a****n@g****m | 3 |
Piotr Kowalczuk | p****v@g****m | 2 |
Yann Defretin | y****n@d****n | 2 |
foolin | f****n@1****m | 2 |
thiemok | k****o@g****m | 2 |
connero | 8****u | 2 |
santosh653 | 7****3 | 2 |
Gleb Tv | g****v@g****m | 1 |
Yuji Yaginuma | y****a@g****m | 1 |
Baptiste Fontaine | b@p****r | 1 |
Antoine Grondin | a****n@g****m | 1 |
Amelia | 7****a | 1 |
Abhigyan Kumar | 4****r | 1 |
38elements | 3****s | 1 |
Adam Prakash Lewis | a****5@g****m | 1 |
Andreas Deininger | a****s@d****t | 1 |
Andrew Stuart | a****2@g****m | 1 |
Benjamin Radovsky | r****b@g****m | 1 |
Dobrosław Żybort | m****k@g****m | 1 |
Gerasimos (Makis) Maropoulos | k****6@h****m | 1 |
Guan Ce | i****o@g****m | 1 |
HARUYAMA Seigo | h****a@u****g | 1 |
and 22 more... |
Issue and Pull Request metadata
Last synced: about 1 month ago
Package metadata
- Total packages: 11
- Total downloads: unknown
- Total docker downloads: 689,405,416
- Total dependent packages: 6,716 (may contain duplicates)
- Total dependent repositories: 19,321 (may contain duplicates)
- Total versions: 276
go: github.com/PuerkitoBio/goquery
Package goquery implements features similar to jQuery, including the chainable syntax, to manipulate and query an HTML document. It brings a syntax and a set of features similar to jQuery to the Go language. It is based on Go's net/html package and the CSS Selector library cascadia. Since the net/html parser returns nodes, and not a full-featured DOM tree, jQuery's stateful manipulation functions (like height(), css(), detach()) have been left off. Also, because the net/html parser requires UTF-8 encoding, so does goquery: it is the caller's responsibility to ensure that the source document provides UTF-8 encoded HTML. See the repository's wiki for various options on how to do this. Syntax-wise, it is as close as possible to jQuery, with the same method names when possible, and that warm and fuzzy chainable interface. jQuery being the ultra-popular library that it is, writing a similar HTML-manipulating library was better to follow its API than to start anew (in the same spirit as Go's fmt package), even though some of its methods are less than intuitive (looking at you, index()...). It is hosted on GitHub, along with additional documentation in the README.md file: https://github.com/puerkitobio/goquery Please note that because of the net/html dependency, goquery requires Go1.1+. The various methods are split into files based on the category of behavior. The three dots (...) indicate that various "overloads" are available. * array.go : array-like positional manipulation of the selection. * expand.go : methods that expand or augment the selection's set. * filter.go : filtering methods, that reduce the selection's set. * iteration.go : methods to loop over the selection's nodes. * manipulation.go : methods for modifying the document * property.go : methods that inspect and get the node's properties values. * query.go : methods that query, or reflect, a node's identity. * traversal.go : methods to traverse the HTML document tree. * type.go : definition of the types exposed by goquery. * utilities.go : definition of helper functions (and not methods on a *Selection) that are not part of jQuery, but are useful to goquery. This example scrapes the reviews shown on the home page of metalsucks.net.
- Homepage: https://github.com/PuerkitoBio/goquery
- Documentation: https://pkg.go.dev/github.com/PuerkitoBio/goquery#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v1.8.1 (published almost 2 years ago)
- Last Synced: 2024-11-11T01:14:59.399Z (about 1 month ago)
- Versions: 27
- Dependent Packages: 6,716
- Dependent Repositories: 19,320
- Docker Downloads: 665,540,998
-
Rankings:
- Dependent packages count: 0.029%
- Dependent repos count: 0.049%
- Docker downloads count: 0.163%
- Average: 0.339%
- Stargazers count: 0.546%
- Forks count: 0.909%
go: github.com/puerkitobio/goquery
Package goquery implements features similar to jQuery, including the chainable syntax, to manipulate and query an HTML document. It brings a syntax and a set of features similar to jQuery to the Go language. It is based on Go's net/html package and the CSS Selector library cascadia. Since the net/html parser returns nodes, and not a full-featured DOM tree, jQuery's stateful manipulation functions (like height(), css(), detach()) have been left off. Also, because the net/html parser requires UTF-8 encoding, so does goquery: it is the caller's responsibility to ensure that the source document provides UTF-8 encoded HTML. See the repository's wiki for various options on how to do this. Syntax-wise, it is as close as possible to jQuery, with the same method names when possible, and that warm and fuzzy chainable interface. jQuery being the ultra-popular library that it is, writing a similar HTML-manipulating library was better to follow its API than to start anew (in the same spirit as Go's fmt package), even though some of its methods are less than intuitive (looking at you, index()...). It is hosted on GitHub, along with additional documentation in the README.md file: https://github.com/puerkitobio/goquery Please note that because of the net/html dependency, goquery requires Go1.1+. The various methods are split into files based on the category of behavior. The three dots (...) indicate that various "overloads" are available. * array.go : array-like positional manipulation of the selection. * expand.go : methods that expand or augment the selection's set. * filter.go : filtering methods, that reduce the selection's set. * iteration.go : methods to loop over the selection's nodes. * manipulation.go : methods for modifying the document * property.go : methods that inspect and get the node's properties values. * query.go : methods that query, or reflect, a node's identity. * traversal.go : methods to traverse the HTML document tree. * type.go : definition of the types exposed by goquery. * utilities.go : definition of helper functions (and not methods on a *Selection) that are not part of jQuery, but are useful to goquery. This example scrapes the reviews shown on the home page of metalsucks.net.
- Homepage: https://github.com/puerkitobio/goquery
- Documentation: https://pkg.go.dev/github.com/puerkitobio/goquery#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v1.8.1 (published almost 2 years ago)
- Last Synced: 2024-11-11T01:15:03.553Z (about 1 month ago)
- Versions: 27
- Dependent Packages: 0
- Dependent Repositories: 1
- Docker Downloads: 23,864,418
-
Rankings:
- Stargazers count: 0.549%
- Forks count: 0.909%
- Average: 3.677%
- Dependent repos count: 4.788%
- Dependent packages count: 8.463%
go: github.com/Puerkitobio/goquery
Package goquery implements features similar to jQuery, including the chainable syntax, to manipulate and query an HTML document. It brings a syntax and a set of features similar to jQuery to the Go language. It is based on Go's net/html package and the CSS Selector library cascadia. Since the net/html parser returns nodes, and not a full-featured DOM tree, jQuery's stateful manipulation functions (like height(), css(), detach()) have been left off. Also, because the net/html parser requires UTF-8 encoding, so does goquery: it is the caller's responsibility to ensure that the source document provides UTF-8 encoded HTML. See the repository's wiki for various options on how to do this. Syntax-wise, it is as close as possible to jQuery, with the same method names when possible, and that warm and fuzzy chainable interface. jQuery being the ultra-popular library that it is, writing a similar HTML-manipulating library was better to follow its API than to start anew (in the same spirit as Go's fmt package), even though some of its methods are less than intuitive (looking at you, index()...). It is hosted on GitHub, along with additional documentation in the README.md file: https://github.com/puerkitobio/goquery Please note that because of the net/html dependency, goquery requires Go1.1+. The various methods are split into files based on the category of behavior. The three dots (...) indicate that various "overloads" are available. * array.go : array-like positional manipulation of the selection. * expand.go : methods that expand or augment the selection's set. * filter.go : filtering methods, that reduce the selection's set. * iteration.go : methods to loop over the selection's nodes. * manipulation.go : methods for modifying the document * property.go : methods that inspect and get the node's properties values. * query.go : methods that query, or reflect, a node's identity. * traversal.go : methods to traverse the HTML document tree. * type.go : definition of the types exposed by goquery. * utilities.go : definition of helper functions (and not methods on a *Selection) that are not part of jQuery, but are useful to goquery. This example scrapes the reviews shown on the home page of metalsucks.net.
- Homepage: https://github.com/Puerkitobio/goquery
- Documentation: https://pkg.go.dev/github.com/Puerkitobio/goquery#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v1.8.1 (published almost 2 years ago)
- Last Synced: 2024-11-11T01:14:53.661Z (about 1 month ago)
- Versions: 27
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Stargazers count: 0.431%
- Forks count: 0.618%
- Average: 4.348%
- Dependent packages count: 6.999%
- Dependent repos count: 9.346%
go: github.com/PUerkitoBio/goquery
Package goquery implements features similar to jQuery, including the chainable syntax, to manipulate and query an HTML document. It brings a syntax and a set of features similar to jQuery to the Go language. It is based on Go's net/html package and the CSS Selector library cascadia. Since the net/html parser returns nodes, and not a full-featured DOM tree, jQuery's stateful manipulation functions (like height(), css(), detach()) have been left off. Also, because the net/html parser requires UTF-8 encoding, so does goquery: it is the caller's responsibility to ensure that the source document provides UTF-8 encoded HTML. See the repository's wiki for various options on how to do this. Syntax-wise, it is as close as possible to jQuery, with the same method names when possible, and that warm and fuzzy chainable interface. jQuery being the ultra-popular library that it is, writing a similar HTML-manipulating library was better to follow its API than to start anew (in the same spirit as Go's fmt package), even though some of its methods are less than intuitive (looking at you, index()...). It is hosted on GitHub, along with additional documentation in the README.md file: https://github.com/puerkitobio/goquery Please note that because of the net/html dependency, goquery requires Go1.1+. The various methods are split into files based on the category of behavior. The three dots (...) indicate that various "overloads" are available. * array.go : array-like positional manipulation of the selection. * expand.go : methods that expand or augment the selection's set. * filter.go : filtering methods, that reduce the selection's set. * iteration.go : methods to loop over the selection's nodes. * manipulation.go : methods for modifying the document * property.go : methods that inspect and get the node's properties values. * query.go : methods that query, or reflect, a node's identity. * traversal.go : methods to traverse the HTML document tree. * type.go : definition of the types exposed by goquery. * utilities.go : definition of helper functions (and not methods on a *Selection) that are not part of jQuery, but are useful to goquery. This example scrapes the reviews shown on the home page of metalsucks.net.
- Homepage: https://github.com/PUerkitoBio/goquery
- Documentation: https://pkg.go.dev/github.com/PUerkitoBio/goquery#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v1.8.1 (published almost 2 years ago)
- Last Synced: 2024-11-11T01:14:56.239Z (about 1 month ago)
- Versions: 27
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Stargazers count: 0.431%
- Forks count: 0.618%
- Average: 4.348%
- Dependent packages count: 6.999%
- Dependent repos count: 9.346%
go: github.com/PuerkitoBio/goQuery
Package goquery implements features similar to jQuery, including the chainable syntax, to manipulate and query an HTML document. It brings a syntax and a set of features similar to jQuery to the Go language. It is based on Go's net/html package and the CSS Selector library cascadia. Since the net/html parser returns nodes, and not a full-featured DOM tree, jQuery's stateful manipulation functions (like height(), css(), detach()) have been left off. Also, because the net/html parser requires UTF-8 encoding, so does goquery: it is the caller's responsibility to ensure that the source document provides UTF-8 encoded HTML. See the repository's wiki for various options on how to do this. Syntax-wise, it is as close as possible to jQuery, with the same method names when possible, and that warm and fuzzy chainable interface. jQuery being the ultra-popular library that it is, writing a similar HTML-manipulating library was better to follow its API than to start anew (in the same spirit as Go's fmt package), even though some of its methods are less than intuitive (looking at you, index()...). It is hosted on GitHub, along with additional documentation in the README.md file: https://github.com/puerkitobio/goquery Please note that because of the net/html dependency, goquery requires Go1.1+. The various methods are split into files based on the category of behavior. The three dots (...) indicate that various "overloads" are available. * array.go : array-like positional manipulation of the selection. * expand.go : methods that expand or augment the selection's set. * filter.go : filtering methods, that reduce the selection's set. * iteration.go : methods to loop over the selection's nodes. * manipulation.go : methods for modifying the document * property.go : methods that inspect and get the node's properties values. * query.go : methods that query, or reflect, a node's identity. * traversal.go : methods to traverse the HTML document tree. * type.go : definition of the types exposed by goquery. * utilities.go : definition of helper functions (and not methods on a *Selection) that are not part of jQuery, but are useful to goquery. This example scrapes the reviews shown on the home page of metalsucks.net.
- Homepage: https://github.com/PuerkitoBio/goQuery
- Documentation: https://pkg.go.dev/github.com/PuerkitoBio/goQuery#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v1.8.1 (published almost 2 years ago)
- Last Synced: 2024-11-11T01:15:14.216Z (about 1 month ago)
- Versions: 27
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Stargazers count: 0.431%
- Forks count: 0.618%
- Average: 4.348%
- Dependent packages count: 6.999%
- Dependent repos count: 9.346%
go: github.com/PuerkitoBio/Goquery
Package goquery implements features similar to jQuery, including the chainable syntax, to manipulate and query an HTML document. It brings a syntax and a set of features similar to jQuery to the Go language. It is based on Go's net/html package and the CSS Selector library cascadia. Since the net/html parser returns nodes, and not a full-featured DOM tree, jQuery's stateful manipulation functions (like height(), css(), detach()) have been left off. Also, because the net/html parser requires UTF-8 encoding, so does goquery: it is the caller's responsibility to ensure that the source document provides UTF-8 encoded HTML. See the repository's wiki for various options on how to do this. Syntax-wise, it is as close as possible to jQuery, with the same method names when possible, and that warm and fuzzy chainable interface. jQuery being the ultra-popular library that it is, writing a similar HTML-manipulating library was better to follow its API than to start anew (in the same spirit as Go's fmt package), even though some of its methods are less than intuitive (looking at you, index()...). It is hosted on GitHub, along with additional documentation in the README.md file: https://github.com/puerkitobio/goquery Please note that because of the net/html dependency, goquery requires Go1.1+. The various methods are split into files based on the category of behavior. The three dots (...) indicate that various "overloads" are available. * array.go : array-like positional manipulation of the selection. * expand.go : methods that expand or augment the selection's set. * filter.go : filtering methods, that reduce the selection's set. * iteration.go : methods to loop over the selection's nodes. * manipulation.go : methods for modifying the document * property.go : methods that inspect and get the node's properties values. * query.go : methods that query, or reflect, a node's identity. * traversal.go : methods to traverse the HTML document tree. * type.go : definition of the types exposed by goquery. * utilities.go : definition of helper functions (and not methods on a *Selection) that are not part of jQuery, but are useful to goquery. This example scrapes the reviews shown on the home page of metalsucks.net.
- Homepage: https://github.com/PuerkitoBio/Goquery
- Documentation: https://pkg.go.dev/github.com/PuerkitoBio/Goquery#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v1.8.1 (published almost 2 years ago)
- Last Synced: 2024-11-11T01:15:09.172Z (about 1 month ago)
- Versions: 27
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Stargazers count: 0.536%
- Forks count: 0.885%
- Average: 5.222%
- Dependent packages count: 8.899%
- Dependent repos count: 10.567%
go: github.com/PuerKitobio/goquery
Package goquery implements features similar to jQuery, including the chainable syntax, to manipulate and query an HTML document. It brings a syntax and a set of features similar to jQuery to the Go language. It is based on Go's net/html package and the CSS Selector library cascadia. Since the net/html parser returns nodes, and not a full-featured DOM tree, jQuery's stateful manipulation functions (like height(), css(), detach()) have been left off. Also, because the net/html parser requires UTF-8 encoding, so does goquery: it is the caller's responsibility to ensure that the source document provides UTF-8 encoded HTML. See the repository's wiki for various options on how to do this. Syntax-wise, it is as close as possible to jQuery, with the same method names when possible, and that warm and fuzzy chainable interface. jQuery being the ultra-popular library that it is, writing a similar HTML-manipulating library was better to follow its API than to start anew (in the same spirit as Go's fmt package), even though some of its methods are less than intuitive (looking at you, index()...). It is hosted on GitHub, along with additional documentation in the README.md file: https://github.com/puerkitobio/goquery Please note that because of the net/html dependency, goquery requires Go1.1+. The various methods are split into files based on the category of behavior. The three dots (...) indicate that various "overloads" are available. * array.go : array-like positional manipulation of the selection. * expand.go : methods that expand or augment the selection's set. * filter.go : filtering methods, that reduce the selection's set. * iteration.go : methods to loop over the selection's nodes. * manipulation.go : methods for modifying the document * property.go : methods that inspect and get the node's properties values. * query.go : methods that query, or reflect, a node's identity. * traversal.go : methods to traverse the HTML document tree. * type.go : definition of the types exposed by goquery. * utilities.go : definition of helper functions (and not methods on a *Selection) that are not part of jQuery, but are useful to goquery. This example scrapes the reviews shown on the home page of metalsucks.net.
- Homepage: https://github.com/PuerKitobio/goquery
- Documentation: https://pkg.go.dev/github.com/PuerKitobio/goquery#section-documentation
- Licenses: BSD-3-Clause
- Latest release:
- Last Synced: 2024-11-11T01:15:00.640Z (about 1 month ago)
- Versions: 27
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 6.323%
- Average: 6.536%
- Dependent repos count: 6.75%
go: github.com/PuerkiTobio/goquery
Package goquery implements features similar to jQuery, including the chainable syntax, to manipulate and query an HTML document. It brings a syntax and a set of features similar to jQuery to the Go language. It is based on Go's net/html package and the CSS Selector library cascadia. Since the net/html parser returns nodes, and not a full-featured DOM tree, jQuery's stateful manipulation functions (like height(), css(), detach()) have been left off. Also, because the net/html parser requires UTF-8 encoding, so does goquery: it is the caller's responsibility to ensure that the source document provides UTF-8 encoded HTML. See the repository's wiki for various options on how to do this. Syntax-wise, it is as close as possible to jQuery, with the same method names when possible, and that warm and fuzzy chainable interface. jQuery being the ultra-popular library that it is, writing a similar HTML-manipulating library was better to follow its API than to start anew (in the same spirit as Go's fmt package), even though some of its methods are less than intuitive (looking at you, index()...). It is hosted on GitHub, along with additional documentation in the README.md file: https://github.com/puerkitobio/goquery Please note that because of the net/html dependency, goquery requires Go1.1+. The various methods are split into files based on the category of behavior. The three dots (...) indicate that various "overloads" are available. * array.go : array-like positional manipulation of the selection. * expand.go : methods that expand or augment the selection's set. * filter.go : filtering methods, that reduce the selection's set. * iteration.go : methods to loop over the selection's nodes. * manipulation.go : methods for modifying the document * property.go : methods that inspect and get the node's properties values. * query.go : methods that query, or reflect, a node's identity. * traversal.go : methods to traverse the HTML document tree. * type.go : definition of the types exposed by goquery. * utilities.go : definition of helper functions (and not methods on a *Selection) that are not part of jQuery, but are useful to goquery. This example scrapes the reviews shown on the home page of metalsucks.net.
- Homepage: https://github.com/PuerkiTobio/goquery
- Documentation: https://pkg.go.dev/github.com/PuerkiTobio/goquery#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v1.8.1 (published almost 2 years ago)
- Last Synced: 2024-11-11T01:14:47.288Z (about 1 month ago)
- Versions: 27
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 6.999%
- Average: 8.173%
- Dependent repos count: 9.346%
go: github.com/puerkitoBio/goquery
Package goquery implements features similar to jQuery, including the chainable syntax, to manipulate and query an HTML document. It brings a syntax and a set of features similar to jQuery to the Go language. It is based on Go's net/html package and the CSS Selector library cascadia. Since the net/html parser returns nodes, and not a full-featured DOM tree, jQuery's stateful manipulation functions (like height(), css(), detach()) have been left off. Also, because the net/html parser requires UTF-8 encoding, so does goquery: it is the caller's responsibility to ensure that the source document provides UTF-8 encoded HTML. See the repository's wiki for various options on how to do this. Syntax-wise, it is as close as possible to jQuery, with the same method names when possible, and that warm and fuzzy chainable interface. jQuery being the ultra-popular library that it is, writing a similar HTML-manipulating library was better to follow its API than to start anew (in the same spirit as Go's fmt package), even though some of its methods are less than intuitive (looking at you, index()...). It is hosted on GitHub, along with additional documentation in the README.md file: https://github.com/puerkitobio/goquery Please note that because of the net/html dependency, goquery requires Go1.1+. The various methods are split into files based on the category of behavior. The three dots (...) indicate that various "overloads" are available. * array.go : array-like positional manipulation of the selection. * expand.go : methods that expand or augment the selection's set. * filter.go : filtering methods, that reduce the selection's set. * iteration.go : methods to loop over the selection's nodes. * manipulation.go : methods for modifying the document * property.go : methods that inspect and get the node's properties values. * query.go : methods that query, or reflect, a node's identity. * traversal.go : methods to traverse the HTML document tree. * type.go : definition of the types exposed by goquery. * utilities.go : definition of helper functions (and not methods on a *Selection) that are not part of jQuery, but are useful to goquery. This example scrapes the reviews shown on the home page of metalsucks.net.
- Homepage: https://github.com/puerkitoBio/goquery
- Documentation: https://pkg.go.dev/github.com/puerkitoBio/goquery#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v1.8.1 (published almost 2 years ago)
- Last Synced: 2024-11-11T01:14:59.835Z (about 1 month ago)
- Versions: 27
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 6.999%
- Average: 8.173%
- Dependent repos count: 9.346%
go: github.com/PuerKitoBio/goquery
Package goquery implements features similar to jQuery, including the chainable syntax, to manipulate and query an HTML document. It brings a syntax and a set of features similar to jQuery to the Go language. It is based on Go's net/html package and the CSS Selector library cascadia. Since the net/html parser returns nodes, and not a full-featured DOM tree, jQuery's stateful manipulation functions (like height(), css(), detach()) have been left off. Also, because the net/html parser requires UTF-8 encoding, so does goquery: it is the caller's responsibility to ensure that the source document provides UTF-8 encoded HTML. See the repository's wiki for various options on how to do this. Syntax-wise, it is as close as possible to jQuery, with the same method names when possible, and that warm and fuzzy chainable interface. jQuery being the ultra-popular library that it is, writing a similar HTML-manipulating library was better to follow its API than to start anew (in the same spirit as Go's fmt package), even though some of its methods are less than intuitive (looking at you, index()...). It is hosted on GitHub, along with additional documentation in the README.md file: https://github.com/puerkitobio/goquery Please note that because of the net/html dependency, goquery requires Go1.1+. The various methods are split into files based on the category of behavior. The three dots (...) indicate that various "overloads" are available. * array.go : array-like positional manipulation of the selection. * expand.go : methods that expand or augment the selection's set. * filter.go : filtering methods, that reduce the selection's set. * iteration.go : methods to loop over the selection's nodes. * manipulation.go : methods for modifying the document * property.go : methods that inspect and get the node's properties values. * query.go : methods that query, or reflect, a node's identity. * traversal.go : methods to traverse the HTML document tree. * type.go : definition of the types exposed by goquery. * utilities.go : definition of helper functions (and not methods on a *Selection) that are not part of jQuery, but are useful to goquery. This example scrapes the reviews shown on the home page of metalsucks.net.
- Homepage: https://github.com/PuerKitoBio/goquery
- Documentation: https://pkg.go.dev/github.com/PuerKitoBio/goquery#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v1.8.1 (published almost 2 years ago)
- Last Synced: 2024-11-11T01:15:13.188Z (about 1 month ago)
- Versions: 27
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 6.999%
- Average: 8.173%
- Dependent repos count: 9.346%
go: gopkg.in/puerkitobio/goquery.v0
Package goquery implements features similar to jQuery, including the chainable syntax, to manipulate and query an HTML document (the modification functions of jQuery are not included). It uses Cascadia as CSS selector (similar to Sizzle for jQuery). To provide a chainable interface, error management is strict, and goquery panics if an invalid Cascadia selector is used (this is consistent with the behavior of jQuery/Sizzle/document.querySelectorAll, where an error is thrown). This is necessary since multiple return values cannot be used to allow a chainable interface. It is hosted on GitHub, along with additional documentation in the README.md file: https://github.com/puerkitobio/goquery The various methods are split into files based on the category of behavior: * array.go : array-like positional manipulation of the selection. * expand.go : methods that expand or augment the selection's set. * filter.go : filtering methods, that reduce the selection's set. * iteration.go : methods to loop over the selection's nodes. * property.go : methods that inspect and get the node's properties values. * query.go : methods that query, or reflect, a node's identity. * traversal.go : methods to traverse the HTML document tree. * type.go : definition of the types exposed by GoQuery.
- Homepage: https://github.com/puerkitobio/goquery
- Documentation: https://pkg.go.dev/gopkg.in/puerkitobio/goquery.v0#section-documentation
- Licenses: BSD-3-Clause
- Latest release: v0.3.2 (published over 11 years ago)
- Last Synced: 2024-12-01T15:05:19.274Z (20 days ago)
- Versions: 6
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 6.999%
- Average: 8.173%
- Dependent repos count: 9.346%
Dependencies
- github.com/andybalholm/cascadia v1.3.1
- golang.org/x/net v0.0.0-20211216030914-fe4d6282115f
- github.com/andybalholm/cascadia v1.3.1
- golang.org/x/net v0.0.0-20210916014120-12bc252f5db8
- golang.org/x/net v0.0.0-20211216030914-fe4d6282115f
- golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
- golang.org/x/sys v0.0.0-20210423082822-04245dca01da
- golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
- golang.org/x/text v0.3.6
- golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
- actions/checkout v3 composite
- actions/setup-go v3 composite