xvideos

package module
v0.0.0-...-e1c6d2d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2015 License: BSD-3-Clause Imports: 5 Imported by: 0

README

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

Documentation

Overview

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

Refer to http://github.com/pdevty/xvideos for more infomation

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)
  }
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Xvideo

type Xvideo struct {
	Id        string
	Title     string
	Thumbnail string
	Url       string
	Duration  string
	Rating    string
	Tags      []string
}

get func return xvideo data struct

func Get

func Get(rawurl string) (xvideos []Xvideo, err error)

get xvideos information. url to be set xvideos list page

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL