This package scrapes the HTML of xvideos.com and gives you information you can use in your go programs
execute:
$ go get github.com/pdevty/xvideos
package main
import (
"fmt"
"github.com/pdevty/xvideos"
"log"
)
func main() {
// url to be set xvideos list page
xv, err := xvideos.Get("http://jp.xvideos.com/c/asian_woman-32/")
if err != nil {
log.Fatal(err)
}
for _, v := range xv {
fmt.Println(v.Id, v.Url, v.Duration, v.Rating, v.Thumbnail, v.Title, v.Tags)
}
}
Refer to godoc for more infomation.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request