This commit is contained in:
eson 2018-12-20 01:38:57 +08:00
parent dfe21c52a6
commit aec7f4cf86

View File

@ -5,6 +5,8 @@ import (
"log"
"strconv"
"testing"
"github.com/davecgh/go-spew/spew"
)
func TestParser(t *testing.T) {
@ -34,7 +36,7 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) {
log.Println(err)
}
log.Println(adlist)
spew.Dump(adlist)
adparser := NewADParser(tt.GetSpiderID())
data, err := adparser.ToJSON()