Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCatListFromNodeJS ¶
GetCatListFromNodeJS http reques from node.js and parse
func GetPagesFromNodeJS ¶
GetPagesFromNodeJS http reques from node.js and parse
** http://127.0.0.1:8001/szlcscpages?keyword=http://www.szlcsc.com/catalog/924.html ** ur = http://www.szlcsc.com/catalog/924.html
func StanHTTPGetURL ¶
StanHTTPGetURL go request url use http get.
Types ¶
type CatsResponse ¶
type CatsResponse struct { Status int `json:"status"` Keyword string `json:"keyword"` Cats []string `json:"cats"` }
CatsResponse json response from ndoe.js struct
type PageResponse ¶
type PageResponse struct { Status int `json:"status"` Pagemax int `json:"pagemax"` Purl string `json:"preurl"` Surl string `json:"suxurl"` }
PageResponse json response from ndoe.js struct
type PartNumber ¶
type PartNumber struct { Status int `json:"status"` Keyword string `json:"keyword"` Steps []int64 `json:"steps"` Prices []float64 `json:"prices"` Part string `json:"part"` Promaf string `json:"pro_maf"` Stock int64 `json:"stock"` Cat string `json:"pro_cat"` Detail string `json:"pro_detail"` Pkg string `json:"pro_pkg"` Desc string `json:"pro_desc"` YuanPan int64 `json:"yuanpan"` RecentSell int64 `json:"recentsell"` Icode string `json:"pro_icode"` }
PartNumber str
func GetPageListDetail ¶
func GetPageListDetail(ur string) ([]PartNumber, error)
GetPageListDetail http reques from node.js and parse
** http://127.0.0.1:8001/szlcsclist?keyword=http://www.szlcsc.com/search/catalog_603_1_0_1-0-0-3-1_0.html&queryBeginPrice=null&queryEndPrice=null ** ur = http://www.szlcsc.com/search/catalog_603_1_0_1-0-0-3-1_0.html&queryBeginPrice=null&queryEndPrice=null
type PartNumberResponse ¶
type PartNumberResponse struct { Status int `json:"status"` Keyword string `json:"pagemax"` PartNumbers []PartNumber `json:"data"` }
PartNumberResponse part
Click to show internal directories.
Click to hide internal directories.