Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

scrapes the HTML of xvideos.com for go

Resources

Stars

27 stars

Watchers

6 watching

Forks

Releases

Packages

Contributors

Languages