xvideos icon indicating copy to clipboard operation
xvideos copied to clipboard

scrapes the HTML of xvideos.com for go

xvideos GoDoc Build Status Coverage Status

This package scrapes the HTML of xvideos.com and gives you information you can use in your go programs

Installation

execute:

$ go get github.com/pdevty/xvideos

Usage

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.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request