Fix exporter bug

This commit is contained in:
Musab Gültekin
2021-10-14 21:54:46 +03:00
parent b8bda36f92
commit 6415a775f4
2 changed files with 42 additions and 19 deletions

View File

@@ -61,7 +61,7 @@ func TestQuotes(t *testing.T) {
geziyor.NewGeziyor(&geziyor.Options{
StartURLs: []string{"http://quotes.toscrape.com/"},
ParseFunc: quotesParse,
Exporters: []export.Exporter{&export.JSON{}},
Exporters: []export.Exporter{&export.JSONLine{FileName: "1.jsonl"}, &export.JSON{FileName: "2.json"}},
}).Start()
}