上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 111 下一页
摘要: 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 阅读(42) 评论(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 阅读(123) 评论(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 阅读(42) 评论(0) 推荐(0) 编辑
摘要: json 请求 client := &http.Client{} data := make(map[string]interface{}) data["key_name"] = key_name data["value_name"] = key_value bytesData, _ := json. 阅读全文
posted @ 2023-02-13 16:10 AngDH 阅读(39) 评论(0) 推荐(0) 编辑
摘要: expr := proto.TimeSinceEpoch(time.Now().Add(180 * 24 * time.Hour).Unix()) page.MustSetCookies(&proto.NetworkCookieParam{ Name: "cookiename", Value: "v 阅读全文
posted @ 2023-02-11 13:41 AngDH 阅读(62) 评论(0) 推荐(0) 编辑
摘要: result := page.MustEval(`() => Array.from(document.getElementsByTagName('body')).map(article=>article.innerHTML).join("\n")`) 阅读全文
posted @ 2023-02-11 13:39 AngDH 阅读(96) 评论(0) 推荐(0) 编辑
摘要: err := rod.Try(func() { page.Timeout(60 * time.Second).MustNavigate(url).MustWaitLoad().CancelTimeout() }) if errors.Is(err, context.DeadlineExceeded) 阅读全文
posted @ 2023-02-11 13:36 AngDH 阅读(92) 评论(0) 推荐(0) 编辑
摘要: document.onmousemove = function(e){ if (!window.angdh_list){ window.angdh_list = []; }; window.angdh_list.push({x:e.clientX,y:e.clientY}) console.log( 阅读全文
posted @ 2023-02-10 16:03 AngDH 阅读(198) 评论(0) 推荐(0) 编辑
摘要: func Get_time_GMT() string { var cstSh, _ = time.LoadLocation("GMT") return time.Now().In(cstSh).Format("2006-01-02T15:04:05") } 阅读全文
posted @ 2023-02-10 11:44 AngDH 阅读(31) 评论(0) 推荐(0) 编辑
摘要: https://henreash.blog.csdn.net/article/details/84927164 阅读全文
posted @ 2023-02-02 16:18 AngDH 阅读(16) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 111 下一页