上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 126 下一页
摘要: 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 阅读(191) 评论(0) 推荐(0)
摘要: result := page.MustEval(`() => Array.from(document.getElementsByTagName('body')).map(article=>article.innerHTML).join("\n")`) 阅读全文
posted @ 2023-02-11 13:39 AngDH 阅读(162) 评论(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 阅读(252) 评论(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 阅读(261) 评论(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 阅读(104) 评论(0) 推荐(0)
摘要: https://henreash.blog.csdn.net/article/details/84927164 阅读全文
posted @ 2023-02-02 16:18 AngDH 阅读(46) 评论(0) 推荐(0)
摘要: 了解上下文 (go-rod.github.io) https://go-rod.github.io/#/understand-context 在了解上下文之前,请确保您已学习 Goroutines 和 Channels。 上下文主要用于在 Goroutines 之间传输上下文信息,包括:取消信号、超 阅读全文
posted @ 2023-02-02 16:11 AngDH 阅读(69) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-01-26 14:16 AngDH 阅读(53) 评论(0) 推荐(0)
摘要: import ( redigo "github.com/gomodule/redigo/redis" ) func NewPool() *redigo.Pool { //return &redigo.Pool{ // MaxIdle: 3, // IdleTimeout: 240 * time.Se 阅读全文
posted @ 2023-01-17 17:51 AngDH 阅读(70) 评论(0) 推荐(0)
摘要: https://github.com/go-rod/go-rod-chinese/blob/186e2fcf0611f0fcea74e723d82e079bd724ce8f/page_test.go page.MustSetWindow(0, 0, 1211, 611) 阅读全文
posted @ 2023-01-16 18:21 AngDH 阅读(136) 评论(0) 推荐(0)
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 126 下一页