go-rod 读取cookie

 

 

 

https://github.com/go-rod/go-rod-chinese/blob/186e2fcf0611f0fcea74e723d82e079bd724ce8f/lib/examples/compare-chromedp/cookie/main.go

 

 

     // read network values
    for i, cookie := range page.MustCookies() {
        log.Printf("chrome cookie %d: %+v", i, cookie)
    }

 

posted @ 2023-01-12 19:54  AngDH  阅读(88)  评论(0编辑  收藏  举报