We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
希望作者可以将doCycleRetry改成protect访问级别,外部可以重写这个方法改变行为。
比如重试三次之后还是失败就没然后了, 我想通过改写这个方法做一些通知
The text was updated successfully, but these errors were encountered:
在 us.codecraft.webmagic.SpiderListener.onError(Request, Exception) 读取request.getExtra(Request.CYCLE_TRIED_TIMES),如果次数等于 site.getCycleRetryTimes()就发通知。
us.codecraft.webmagic.SpiderListener.onError(Request, Exception)
request.getExtra(Request.CYCLE_TRIED_TIMES)
site.getCycleRetryTimes()
Sorry, something went wrong.
我看的是0.10.0的代码,只有在page.isDownloadSuccess()是false的情况下才会走重试逻辑,不会走到onError中而是走到onSuccess中。 我感觉哪里怪怪的,isDownloadSuccess如果是false 不应该走onError方法吗?
No branches or pull requests
希望作者可以将doCycleRetry改成protect访问级别,外部可以重写这个方法改变行为。
比如重试三次之后还是失败就没然后了, 我想通过改写这个方法做一些通知
The text was updated successfully, but these errors were encountered: