We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bff4f99 commit a440512Copy full SHA for a440512
product.go
@@ -17,6 +17,7 @@ type Product struct {
17
Reviews []Review
18
}
19
20
+// GetReviews gets the product's top reviews from amazon product page
21
func (product *Product) GetReviews() {
22
now := time.Now().UTC()
23
resp, err := soup.Get(product.Link)
review.go
@@ -9,6 +9,7 @@ type Review struct {
9
Content string
10
11
12
+// ParseReviews parses the HTML content
13
func (review *Review) ParseReviews(raw soup.Root) error {
14
contentHolder := raw.Find("div", "class", "a-expander-content")
15
0 commit comments