213
This commit is contained in:
parent
dfe21c52a6
commit
aec7f4cf86
|
@ -5,6 +5,8 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"strconv"
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/davecgh/go-spew/spew"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestParser(t *testing.T) {
|
func TestParser(t *testing.T) {
|
||||||
|
@ -34,7 +36,7 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println(adlist)
|
spew.Dump(adlist)
|
||||||
|
|
||||||
adparser := NewADParser(tt.GetSpiderID())
|
adparser := NewADParser(tt.GetSpiderID())
|
||||||
data, err := adparser.ToJSON()
|
data, err := adparser.ToJSON()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user