Caution!
This library was created before the other with the same name (https://github.com/PuerkitoBio/goquery), but after I saw that there is a new project doing the same thing, I abandoned this. Use the PuerkitoBio's one. Cheers.
Jquery style selector engine for HTML documents, in Go.
If the package sees some usage then it will get a more comprehensive API.
See "remote.go" in the examples folder.
package main
import(
"github.com/opesun/goquery"
)
func main() {
x, err := goquery.ParseUrl("http://www.youtube.com/watch?v=ob_nh1WMMzU")
if err != nil {
panic(err)
}
x.Find("#eow-title").Print()
}
This will output (if it can load the url):
span
a
Bounty Killer
- Look