摘要:
expr := proto.TimeSinceEpoch(time.Now().Add(180 * 24 * time.Hour).Unix()) page.MustSetCookies(&proto.NetworkCookieParam{ Name: "cookiename", Value: "v 阅读全文
摘要:
result := page.MustEval(`() => Array.from(document.getElementsByTagName('body')).map(article=>article.innerHTML).join("\n")`) 阅读全文
摘要:
err := rod.Try(func() { page.Timeout(60 * time.Second).MustNavigate(url).MustWaitLoad().CancelTimeout() }) if errors.Is(err, context.DeadlineExceeded) 阅读全文