package
Version:
v0.1.3
Opens a new window with list of versions in this module.
Published: Dec 16, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var OutputCmd = &cobra.Command{
Use: "output",
Short: "导出已爬取的数据",
Long: "导出已爬取的数据",
Run: func(cmd *cobra.Command, args []string) {
if err := taskToCSV(e.Store.All(), filename); err != nil {
store.Log.Panic("taskToCSV", err)
}
os.Exit(0)
},
}
初始化引擎
@Params
s 存储
logPath 日志路径
threadNum 线程数(默认1)
注册适配器
@Params
adapters 适配器
执行
命令:(详情请运行 加参数 --help)
run 执行程序
output 导出文件
@Params
ts 初始任务
Source Files
¶
Click to show internal directories.
Click to hide internal directories.