<commit_before>// 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)
// 		}
//  }
package xvideos

import (
	"github.com/PuerkitoBio/goquery"
	"net/url"
	"regexp"
	"runtime"
	"strings"
)

// get func return xvideo data struct
type Xvideo struct {
	Id        string
	Title     string
	Thumbnail string
	Url       string
	Duration  string
	Rating    string
	Tags      []string
}

// get xvideos tags
func getTags(url string) (tags []string, err error) {
	doc, err := goquery.NewDocument(url)
	if err != nil {
		return nil, err<commit_msg>update comments<commit_after>// 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)
// 	  }
//  }
package xvideos

import (
	"github.com/PuerkitoBio/goquery"
	"net/url"
	"regexp"
	"runtime"
	"strings"
)

// get func return xvideo data struct
type Xvideo struct {
	Id        string
	Title     string
	Thumbnail string
	Url       string
	Duration  string
	Rating    string
	Tags      []string
}

// get xvideos tags
func getTags(url string) (tags []string, err error) {
	doc, err := goquery.NewDocument(url)
	if err != nil {
		return nil, err
{'fraction_non_alphanumeric': 0.1501187648456057, 'fraction_numerical': 0.0019002375296912114, 'mean_word_length': 2.3481717011128778, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7603384', 'n_tokens_mistral': 854, 'n_tokens_neox': 803, 'n_words': 216}