猪笑驴脸长

Results 4 issues of 猪笑驴脸长

**问题描述** 在阅读源码感叹大佬的强大时,修炼尚浅的我无法明白注入页面的 `addLink` 使用异步函数方法重写的原因。大佬可否解答一下。 为何最后要再通过 `DeliverResult` 方法来触发,这里有点绕 https://github.com/Qianlitp/crawlergo/blob/9d6f751f05c19d66ceaf8f00a4185c03c6ccfa2b/pkg/js/javascript.go#L253-L265

### Discussed in https://github.com/Qianlitp/crawlergo/discussions/107 Originally posted by **PIGfaces** June 28, 2022 https://github.com/Qianlitp/crawlergo/blob/dbf70647a44bbfbdaeec98791f90c2497d781708/pkg/engine/tab.go#L264-L270 函数 `RunWithTimeOut` 中的 `ctx` 参数并没使用到,可以把它去掉吗,真正用到 `ctx` 是上层的函数调用,上层的 `context` 超时时间为 `TabRunTimeout` 到了这一层变成了 `DomContentLoadedTimeout` 这是出于什么原因呀

## Version - **Golang**: `go version go1.18 darwin/arm64` - **Browser**: `Google Chrome 103.0.5060.53` - **OS**: `macOS 12.4 (21F79) [m1]` - **Arch**: `arm64` - **Commit** - `321828272c66c95a05fd262365a501e8f7b5d031` - `dbf70647a44bbfbdaeec98791f90c2497d781708` - latest...

bug

## 问题描述 当我在爬取 **目标站点**: `https://19.offcn.com/` 的时候有些链接爬不全,关闭无头模式打开 chrome 开发者工具时发现有访问失败的请求再不断地重复提交导致其他请求被阻塞,导致整个页面渲染超时而导致漏爬 **正常打开时的控制台** **crawlergo 无头模式爬取的控制台** ![crawlergo](https://user-images.githubusercontent.com/49587098/174032100-ac565e5c-0ea8-4030-bbc6-caca3c58d3a4.gif) ## 复现步骤 **版本** - Commit Version: `551acb2b75403985493b56414d797ce5a1da480f` - Browser: `1.39.122 Chromium: 102.0.5005.115 (正式版本) (arm64)` **执行的命令** ```shell ./crawlergo -m...

bug