|
@@ -2,6 +2,7 @@ package controllers_scraper
|
|
|
|
|
|
import (
|
|
|
"encoding/json"
|
|
|
+ e "github.com/dabory/abango-rest/etc"
|
|
|
"kkscrap-go/controllers/scraper/cafe24"
|
|
|
"kkscrap-go/controllers/scraper/godo"
|
|
|
"kkscrap-go/controllers/scraper/magento"
|
|
@@ -16,8 +17,6 @@ import (
|
|
|
"regexp"
|
|
|
"strings"
|
|
|
|
|
|
- e "github.com/dabory/abango-rest/etc"
|
|
|
-
|
|
|
// "golang.org/x/crypto/bcrypt"
|
|
|
|
|
|
"github.com/labstack/echo"
|
|
@@ -216,7 +215,7 @@ func parseSolution(t model.SolutionType, theme, uri, body string) (ret model.Ite
|
|
|
func getSolutionType(body string) (t model.SolutionType, theme string, reterr error) {
|
|
|
if strings.Contains(body, "window.CAFE24") {
|
|
|
t = model.SolutionTypeCafe24
|
|
|
- } else if strings.Contains(body, "woocommerce-page") {
|
|
|
+ } else if strings.Contains(body, "/wp-content/") {
|
|
|
t = model.SolutionTypeWooCommerce
|
|
|
} else if strings.Contains(body, "고도몰5") {
|
|
|
t = model.SolutionTypeGodo
|