|
@@ -59,15 +59,7 @@ func main() {
|
|
|
|
|
|
doc.Find("link ~ meta").Each(func(i int, s *goquery.Selection) {
|
|
doc.Find("link ~ meta").Each(func(i int, s *goquery.Selection) {
|
|
v, _ := s.Attr("property")
|
|
v, _ := s.Attr("property")
|
|
- if v == "og:description" {
|
|
|
|
- fmt.Println("og:description : ", s.AttrOr("content", ""))
|
|
|
|
- } else if v == "og:title" {
|
|
|
|
- fmt.Println("og:title : ", s.AttrOr("content", ""))
|
|
|
|
- } else if v == "og:image" {
|
|
|
|
- fmt.Println("og:image : ", s.AttrOr("content", ""))
|
|
|
|
- } else if v == "product:price:currency" {
|
|
|
|
- fmt.Println("currency : ", s.AttrOr("content", ""))
|
|
|
|
- }
|
|
|
|
|
|
+ fmt.Println(v, " : ", s.AttrOr("content", ""))
|
|
})
|
|
})
|
|
|
|
|
|
fmt.Println("Author : ")
|
|
fmt.Println("Author : ")
|