Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB配置修改问题 #9

Open
learninto opened this issue Apr 24, 2017 · 2 comments
Open

DB配置修改问题 #9

learninto opened this issue Apr 24, 2017 · 2 comments

Comments

@learninto
Copy link

package main

import (
"github.com/henrylee2cn/pholcus/exec"
_ "github.com/henrylee2cn/pholcus_lib" // 此为公开维护的spider规则库
// _ "pholcus_lib_pte" // 同样你也可以自由添加自己的规则库
)

func main() {
// 设置运行时默认操作界面,并开始运行
// 运行软件前,可设置 -a_ui 参数为"web"、"gui"或"cmd",指定本次运行的操作界面
// 其中"gui"仅支持Windows系统
exec.DefaultRun("web")
}

@learninto
Copy link
Author

如何修改 爬取的 报错路径?
例如如何保存在MySQL中?

@andeya
Copy link
Owner

andeya commented Aug 6, 2017

如果选择mysql输出,失败的url会自动保存在含有history_n后缀的表中,具体自己查看一下数据库,一目了然

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants