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

是否可以有个选项启用或者关闭打印的 Start Crawling/finish 信息 #65

Closed
cdwmhcc opened this issue Nov 7, 2023 · 8 comments
Labels
enhancement New feature or request

Comments

@cdwmhcc
Copy link

cdwmhcc commented Nov 7, 2023

这个特性解决了什么问题?

目前看完文档没有发现有控制 log 的配置,在使用其它方法配合 x-crawl 使用的时候会造成控制台输出混乱。

如果可以手动配置,再提供一个 context 就更好了,类似 https://listr2.kilic.dev/task/output.html

提议的 API 是什么样的?

这个我不是很专业。

@cdwmhcc cdwmhcc added the enhancement New feature or request label Nov 7, 2023
Copy link

github-actions bot commented Nov 7, 2023

Message that will be displayed on users' first issue

@coder-hxl
Copy link
Owner

已经搞定并发布了,请查看 v8.3.0打印信息

感谢您的支持和建议

@cdwmhcc
Copy link
Author

cdwmhcc commented Nov 10, 2023

哇,已经在使用了,太好用了。感谢开发者! @coder-hxl

@cdwmhcc
Copy link
Author

cdwmhcc commented Nov 10, 2023

@coder-hxl 对了, log 的 ts 未更新哦。

// XCrawlConfig
export interface XCrawlConfig extends CrawlCommonConfig {
  mode?: 'async' | 'sync'
  enableRandomFingerprint?: boolean
  baseUrl?: string
  intervalTime?: IntervalTime
  crawlPage?: {
    puppeteerLaunch?: PuppeteerLaunchOptions
  }
}

@coder-hxl
Copy link
Owner

coder-hxl commented Nov 12, 2023

8.3.0 版本的 ts 也更新了,有可能你用的还是 8.2.0 版本,可以尝试把 node_modules 删了重新下载依赖。

@coder-hxl
Copy link
Owner

8.3 版本的终端输出是这样的,也可以通过运行看看是否用 8.3 版本

Uploading run-example.gif

@cdwmhcc
Copy link
Author

cdwmhcc commented Nov 12, 2023

8.3 版本的终端输出是这样的,也可以通过运行看看是否用 8.3 版本

Uploading run-example.gif Uploading run-example.gif

是 webstorm 缓存导致的,可以了,太好用了。

@coder-hxl
Copy link
Owner

😄

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

No branches or pull requests

2 participants