会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
AngDH
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
33
34
35
36
37
38
39
40
41
···
124
下一页
2023年2月18日
go-rod 替换响应结果
摘要: router.MustAdd("*/api/v2", func(ctx *rod.Hijack) { //ctx.MustLoadResponse() log.Println("进来过") ctx.Response.SetBody(`{"cards":"","}`) })
阅读全文
posted @ 2023-02-18 15:56 AngDH
阅读(169)
评论(0)
推荐(0)
2023年2月17日
scrapyd Asyncio
摘要: https://github.com/scrapy/scrapyd/issues/377 https://github.com/namiwa/scrapyd-authenticated
阅读全文
posted @ 2023-02-17 20:25 AngDH
阅读(16)
评论(0)
推荐(0)
内存检测工具
摘要:
阅读全文
posted @ 2023-02-17 13:16 AngDH
阅读(76)
评论(0)
推荐(0)
2023年2月14日
go-rod 使用js并且获得结果
摘要: result := page.MustEval(`() => window.location.href`) result.String()
阅读全文
posted @ 2023-02-14 15:28 AngDH
阅读(131)
评论(0)
推荐(0)
css如何设置元素不显示仅占位置?
摘要: https://www.lmonkey.com/t/oREQWq1L1
阅读全文
posted @ 2023-02-14 10:30 AngDH
阅读(81)
评论(0)
推荐(0)
c 指针的指针
摘要:
阅读全文
posted @ 2023-02-14 01:15 AngDH
阅读(18)
评论(0)
推荐(0)
2023年2月13日
go-rod 获得cookie
摘要: sMap := make(map[string]string) for _, cookie := range page.MustCookies() { //log.Printf("chrome cookie %d: %+v", i, cookie) sMap[cookie.Name] = cooki
阅读全文
posted @ 2023-02-13 18:52 AngDH
阅读(193)
评论(0)
推荐(0)
go-rod 设置等待,用js设置等待
摘要: page.MustWait(`() => { window.astr = Array.from(document.querySelectorAll('#noResult > div > div > p:nth-child(3)')).map( article=>article.innerHTML).
阅读全文
posted @ 2023-02-13 18:18 AngDH
阅读(105)
评论(0)
推荐(0)
go-rod 自定义启动
摘要: u := launcher.New(). Headless(false). //Devtools(true). Bin("E:\\Chrome-bin\\chrome.exe").MustLaunch() browser := rod.New().ControlURL(u). //Trace(tru
阅读全文
posted @ 2023-02-13 16:16 AngDH
阅读(286)
评论(0)
推荐(0)
go-rod 判断某个元素存在
摘要: if page.MustHas("button#onetrust-accept-btn-handler") { page.MustElementX("//button[@id=\"onetrust-accept-btn-handler\"]").MustClick() }
阅读全文
posted @ 2023-02-13 16:14 AngDH
阅读(114)
评论(0)
推荐(0)
上一页
1
···
33
34
35
36
37
38
39
40
41
···
124
下一页
公告