摘要: 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 阅读(94) 评论(0) 推荐(0) 编辑
摘要: result := page.MustEval(`() => Array.from(document.getElementsByTagName('body')).map(article=>article.innerHTML).join("\n")`) 阅读全文
posted @ 2023-02-11 13:39 AngDH 阅读(127) 评论(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 阅读(145) 评论(0) 推荐(0) 编辑