Skip to content

sit-mindshift/pdp-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About pdp-extractor

Package pdp-extractor is a GO based product details crawler for the most popuplar shops. You can use it if you want to show a minimalistic preview of a product based on the URL only.

Go Reference

Installing

Install in the usual Go way:

$ go get -u github.com/sit-mindshift/pdp-extractor/pdp

Example

To use it:

package main

import (
	"fmt"

	pdp "github.com/sit-mindshift/pdp-extractor/pdp"
)

func main() {

	pdpResult, _ := pdp.Run("https://www.amazon.de/dp/B07SPTL3SQ/ref=nosim?tag=masedeveloper-21")
	fmt.Printf("got PDP with title: %s and description:%s\n", pdpResult.MetaTitle, pdpResult.MetaDescription)
	pdp.WriteScreenshotToFile("./out/amazon.de.png", pdpResult)
	fmt.Printf("DONE!")
}

About

The Go Based ProductDetailPageExtractor crawles all usefull informations from a product details page

Resources

License

Stars

Watchers

Forks

Packages

No packages published