213
This commit is contained in:
parent
e66254e37c
commit
7657f50495
|
@ -29,12 +29,12 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) {
|
|||
|
||||
log.Println(adstring)
|
||||
adstring = strconv.QuoteToASCII(adstring)
|
||||
var addata map[string]interface{}
|
||||
if err := json.Unmarshal([]byte(adstring), &addata); err != nil {
|
||||
var adlist []interface{}
|
||||
if err := json.Unmarshal([]byte(adstring), &adlist); err != nil {
|
||||
log.Println(err)
|
||||
}
|
||||
|
||||
log.Println(addata)
|
||||
log.Println(adlist)
|
||||
|
||||
adparser := NewADParser(tt.GetSpiderID())
|
||||
data, err := adparser.ToJSON()
|
||||
|
|
Loading…
Reference in New Issue
Block a user