Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 Commits

Repository files navigation

userBenchmarkScraper GoDoc

A Golang library that scrapes devices and all available info for those devices that has been recorded on UserBenchmark.

Usage

/*type PartInfo struct {	Type string `csv:"Type"` // Can be CPU, GPU, SSD, HDD, USB, or RAM	PartNum string `csv:"Part Number"` // Part Number or Exact Model	Brand string `csv:"Brand"` // The brand of the product (Ex. EVGA)	Model string `csv:"Model"` // Title of item	Rank int `csv:"Rank"` // Ranking in benchmarks	Benchmark float64 `csv:"Benchmark"` // Average benchmark score for the item	Samples int `csv:"Samples"` // How many benchmarks were taken for the item	URL string `csv:"URL"` // The URL on UserBenchmark for the part}*/// This finds the most tested CPU. Just change it from GetCPU() to getGPU(), etc. to get other device typesparts, _:=ubscraper.GetCPU() // Returns a slice of parts with the information abovesort.Slice(parts, func(i, jint) bool { returnparts[i].Samples>parts[j].Samples })
fmt.Println(parts[0])

About

Scrape all devices on the UserBenchmark page at a high speed

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages