摘要:
sMap := make(map[string]string) for _, cookie := range page.MustCookies() { //log.Printf("chrome cookie %d: %+v", i, cookie) sMap[cookie.Name] = cooki 阅读全文
摘要:
page.MustWait(`() => { window.astr = Array.from(document.querySelectorAll('#noResult > div > div > p:nth-child(3)')).map( article=>article.innerHTML). 阅读全文
摘要:
u := launcher.New(). Headless(false). //Devtools(true). Bin("E:\\Chrome-bin\\chrome.exe").MustLaunch() browser := rod.New().ControlURL(u). //Trace(tru 阅读全文
摘要:
if page.MustHas("button#onetrust-accept-btn-handler") { page.MustElementX("//button[@id=\"onetrust-accept-btn-handler\"]").MustClick() } 阅读全文
摘要:
json 请求 client := &http.Client{} data := make(map[string]interface{}) data["key_name"] = key_name data["value_name"] = key_value bytesData, _ := json. 阅读全文