上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 124 下一页
摘要: 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)
摘要: 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)
摘要: result := page.MustEval(`() => window.location.href`) result.String() 阅读全文
posted @ 2023-02-14 15:28 AngDH 阅读(131) 评论(0) 推荐(0)
摘要: https://www.lmonkey.com/t/oREQWq1L1 阅读全文
posted @ 2023-02-14 10:30 AngDH 阅读(81) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-02-14 01:15 AngDH 阅读(18) 评论(0) 推荐(0)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: 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 下一页