Cafemmo Club
← Quay lại danh sách

Hỏi cách lấy cookie google bằng email và password mà không cần dùng giả lập browser

lovephpverymuch31/12/20221674 lượt xem12 bình luận

Anh em cho em hỏi cách lấy cookie google bằng email và password mà không cần dùng giả lập browser với. Em mò mấy ngày rồi mà không ra, đến cả thằng youtube-dl cũng chưa làm được (github[.]com/ytdl-org/youtube-dl/issues/26196). Nhưng có một bác VN làm được mới ghê, đây là output của bác ấy, chỉ dùng GuzzleHttp mà không cần tới giả lập như Selenium, Puppeteer,...

O:27:&quot;GuzzleHttp\\Cookie\\CookieJar&quot;:2:{s:36:&quot;GuzzleHttp\\Cookie\\CookieJarcookies&quot;;a:20:{i:0;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:10:{s:4:&quot;Name&quot;;s:3:&quot;SID&quot;;s:5:&quot;Value&quot;;s:71:&quot;xxxxxxxxx-xxxxxxxxx.&quot;;s:6:&quot;Domain&quot;;s:11:&quot;.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1735373340;s:6:&quot;Secure&quot;;b:0;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:0;s:8:&quot;Priority&quot;;s:4:&quot;HIGH&quot;;}}i:1;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:11:{s:4:&quot;Name&quot;;s:14:&quot;<strong>Secure-1PSID&quot;;s:5:&quot;Value&quot;;s:71:&quot;xxxxxxxxxxxxxxxxxx.&quot;;s:6:&quot;Domain&quot;;s:11:&quot;.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1735373340;s:6:&quot;Secure&quot;;b:1;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:1;s:8:&quot;Priority&quot;;s:4:&quot;HIGH&quot;;s:9:&quot;SameParty&quot;;b:1;}}i:2;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:11:{s:4:&quot;Name&quot;;s:14:&quot;</strong>Secure-3PSID&quot;;s:5:&quot;Value&quot;;s:71:&quot;xxxxxxxxxxxxxxxxxx.&quot;;s:6:&quot;Domain&quot;;s:11:&quot;.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1735373340;s:6:&quot;Secure&quot;;b:1;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:1;s:8:&quot;Priority&quot;;s:4:&quot;HIGH&quot;;s:8:&quot;SameSite&quot;;s:4:&quot;none&quot;;}}i:3;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:10:{s:4:&quot;Name&quot;;s:4:&quot;LSID&quot;;s:5:&quot;Value&quot;;s:71:&quot;xxxxxxxxx.&quot;;s:6:&quot;Domain&quot;;s:19:&quot;accounts.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1735373340;s:6:&quot;Secure&quot;;b:1;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:1;s:8:&quot;Priority&quot;;s:4:&quot;HIGH&quot;;}}i:4;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:11:{s:4:&quot;Name&quot;;s:13:&quot;<strong>Host-1PLSID&quot;;s:5:&quot;Value&quot;;s:71:&quot;xxxxxxxxx.&quot;;s:6:&quot;Domain&quot;;s:19:&quot;accounts.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1735373340;s:6:&quot;Secure&quot;;b:1;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:1;s:8:&quot;Priority&quot;;s:4:&quot;HIGH&quot;;s:9:&quot;SameParty&quot;;b:1;}}i:5;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:11:{s:4:&quot;Name&quot;;s:13:&quot;</strong>Host-3PLSID&quot;;s:5:&quot;Value&quot;;s:71:&quot;xxxxxxxxx.&quot;;s:6:&quot;Domain&quot;;s:19:&quot;accounts.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1735373340;s:6:&quot;Secure&quot;;b:1;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:1;s:8:&quot;Priority&quot;;s:4:&quot;HIGH&quot;;s:8:&quot;SameSite&quot;;s:4:&quot;none&quot;;}}i:6;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:10:{s:4:&quot;Name&quot;;s:4:&quot;HSID&quot;;s:5:&quot;Value&quot;;s:17:&quot;xxxxxxxxx&quot;;s:6:&quot;Domain&quot;;s:11:&quot;.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1735373340;s:6:&quot;Secure&quot;;b:0;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:1;s:8:&quot;Priority&quot;;s:4:&quot;HIGH&quot;;}}i:7;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:10:{s:4:&quot;Name&quot;;s:4:&quot;SSID&quot;;s:5:&quot;Value&quot;;s:17:&quot;xxxxxxxxx&quot;;s:6:&quot;Domain&quot;;s:11:&quot;.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1735373340;s:6:&quot;Secure&quot;;b:1;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:1;s:8:&quot;Priority&quot;;s:4:&quot;HIGH&quot;;}}i:8;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:10:{s:4:&quot;Name&quot;;s:6:&quot;APISID&quot;;s:5:&quot;Value&quot;;s:34:&quot;xxxxxxxxx&quot;;s:6:&quot;Domain&quot;;s:11:&quot;.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1735373340;s:6:&quot;Secure&quot;;b:0;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:0;s:8:&quot;Priority&quot;;s:4:&quot;HIGH&quot;;}}i:9;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:10:{s:4:&quot;Name&quot;;s:7:&quot;SAPISID&quot;;s:5:&quot;Value&quot;;s:34:&quot;xxxxxxxxx&quot;;s:6:&quot;Domain&quot;;s:11:&quot;.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1735373340;s:6:&quot;Secure&quot;;b:1;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:0;s:8:&quot;Priority&quot;;s:4:&quot;HIGH&quot;;}}i:10;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:11:{s:4:&quot;Name&quot;;s:17:&quot;<strong>Secure-1PAPISID&quot;;s:5:&quot;Value&quot;;s:34:&quot;xxxxxxxxx&quot;;s:6:&quot;Domain&quot;;s:11:&quot;.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1735373340;s:6:&quot;Secure&quot;;b:1;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:0;s:8:&quot;Priority&quot;;s:4:&quot;HIGH&quot;;s:9:&quot;SameParty&quot;;b:1;}}i:11;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:11:{s:4:&quot;Name&quot;;s:17:&quot;</strong>Secure-3PAPISID&quot;;s:5:&quot;Value&quot;;s:34:&quot;xxxxxxxxx&quot;;s:6:&quot;Domain&quot;;s:11:&quot;.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1735373340;s:6:&quot;Secure&quot;;b:1;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:0;s:8:&quot;Priority&quot;;s:4:&quot;HIGH&quot;;s:8:&quot;SameSite&quot;;s:4:&quot;none&quot;;}}i:12;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:10:{s:4:&quot;Name&quot;;s:15:&quot;ACCOUNT_CHOOSER&quot;;s:5:&quot;Value&quot;;s:140:&quot;xxxxxxxxx-xxxxxxxxx&quot;;s:6:&quot;Domain&quot;;s:19:&quot;accounts.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1735373340;s:6:&quot;Secure&quot;;b:1;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:1;s:8:&quot;Priority&quot;;s:4:&quot;HIGH&quot;;}}i:13;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:10:{s:4:&quot;Name&quot;;s:11:&quot;<strong>Host-GAPS&quot;;s:5:&quot;Value&quot;;s:113:&quot;1:xxxxxxxxx:xxxxxxxxx&quot;;s:6:&quot;Domain&quot;;s:19:&quot;accounts.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1735373340;s:6:&quot;Secure&quot;;b:1;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:1;s:8:&quot;Priority&quot;;s:4:&quot;HIGH&quot;;}}i:15;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:9:{s:4:&quot;Name&quot;;s:6:&quot;1P_JAR&quot;;s:5:&quot;Value&quot;;s:13:&quot;2022-12-29-08&quot;;s:6:&quot;Domain&quot;;s:11:&quot;.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1674893340;s:6:&quot;Secure&quot;;b:1;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:0;}}i:16;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:10:{s:4:&quot;Name&quot;;s:3:&quot;AEC&quot;;s:5:&quot;Value&quot;;s:59:&quot;xxxxxxxxx&quot;;s:6:&quot;Domain&quot;;s:11:&quot;.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1687853340;s:6:&quot;Secure&quot;;b:1;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:1;s:8:&quot;SameSite&quot;;s:3:&quot;lax&quot;;}}i:17;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:9:{s:4:&quot;Name&quot;;s:3:&quot;NID&quot;;s:5:&quot;Value&quot;;s:192:&quot;xxxxxxxxx-xxxxxxxxx&quot;;s:6:&quot;Domain&quot;;s:11:&quot;.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1688112540;s:6:&quot;Secure&quot;;b:0;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:1;}}i:21;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:10:{s:4:&quot;Name&quot;;s:5:&quot;SIDCC&quot;;s:5:&quot;Value&quot;;s:74:&quot;xxxxxxxxx-Lj3t3L3oLnnhg&quot;;s:6:&quot;Domain&quot;;s:11:&quot;.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1703837340;s:6:&quot;Secure&quot;;b:0;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:0;s:8:&quot;priority&quot;;s:4:&quot;high&quot;;}}i:22;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:10:{s:4:&quot;Name&quot;;s:16:&quot;</strong>Secure-1PSIDCC&quot;;s:5:&quot;Value&quot;;s:72:&quot;xxxxxxxxx&quot;;s:6:&quot;Domain&quot;;s:11:&quot;.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1703837340;s:6:&quot;Secure&quot;;b:1;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:1;s:8:&quot;priority&quot;;s:4:&quot;high&quot;;}}i:23;O:27:&quot;GuzzleHttp\\Cookie\\SetCookie&quot;:1:{s:33:&quot;GuzzleHttp\\Cookie\\SetCookiedata&quot;;a:11:{s:4:&quot;Name&quot;;s:16:&quot;__Secure-3PSIDCC&quot;;s:5:&quot;Value&quot;;s:72:&quot;xxxxxxxxx&quot;;s:6:&quot;Domain&quot;;s:11:&quot;.google.com&quot;;s:4:&quot;Path&quot;;s:1:&quot;/&quot;;s:7:&quot;Max-Age&quot;;N;s:7:&quot;Expires&quot;;i:1703837340;s:6:&quot;Secure&quot;;b:1;s:7:&quot;Discard&quot;;b:0;s:8:&quot;HttpOnly&quot;;b:1;s:8:&quot;priority&quot;;s:4:&quot;high&quot;;s:8:&quot;SameSite&quot;;s:4:&quot;none&quot;;}}}s:39:&quot;GuzzleHttp\\Cookie\\CookieJarstrictMode&quot;;b:0;}

Bình luận

Đang tải...

Đang kiểm tra đăng nhập...

Hỏi cách lấy cookie google bằng email và password mà không cần dùng giả lập browser · Cafemmo Club