How can we add po_token and visitor_data in cookie.json file #655

Open
opened 2025-11-09 09:55:08 -06:00 by GiteaMirror · 17 comments
Owner

Originally created by @lewsol2 on GitHub (Dec 28, 2024).

problem description

How can we generate po_token and visitor_data? and How can we configure it for instance to get it worked?
Can we use po_token and visitor_data without oAuth cookies?

your instance configuration

No response

Originally created by @lewsol2 on GitHub (Dec 28, 2024). ### problem description How can we generate po_token and visitor_data? and How can we configure it for instance to get it worked? Can we use po_token and visitor_data without oAuth cookies? ### your instance configuration _No response_
GiteaMirror added the instance hosting help label 2025-11-09 09:55:08 -06:00
Author
Owner

@coderonex commented on GitHub (Dec 30, 2024):

I also asked a related question, but no one was willing to answer it

@coderonex commented on GitHub (Dec 30, 2024): I also asked a related question, but no one was willing to answer it
Author
Owner

@hamaadraza commented on GitHub (Dec 30, 2024):

Not sure how you can configure po_token and visitor_data in cobalt but for generating these 2 things you can use https://github.com/LuanRT/BgUtils , You will find an example folder that you can reference for usage.

EDIT:
According to this line https://github.com/imputnet/cobalt/blob/0f6516567191706faedff58395befad0b795d648/api/src/processing/services/youtube.js#L79 you can add both of these things in the cookie file and they should be applied.

@hamaadraza commented on GitHub (Dec 30, 2024): Not sure how you can configure po_token and visitor_data in cobalt but for generating these 2 things you can use [https://github.com/LuanRT/BgUtils](url) , You will find an example folder that you can reference for usage. EDIT: According to this line [https://github.com/imputnet/cobalt/blob/0f6516567191706faedff58395befad0b795d648/api/src/processing/services/youtube.js#L79](url) you can add both of these things in the cookie file and they should be applied.
Author
Owner

@hextor1 commented on GitHub (Dec 30, 2024):

You cannot add PO_Token and visitor data in cookies.json fil. you can add these two in api file which is created in nodejs. and also cookies.json only for cookies which you will add see exmaple here https://github.com/imputnet/cobalt/blob/main/docs/examples/cookies.example.json

@hextor1 commented on GitHub (Dec 30, 2024): You cannot add PO_Token and visitor data in cookies.json fil. you can add these two in api file which is created in nodejs. and also cookies.json only for cookies which you will add see exmaple here https://github.com/imputnet/cobalt/blob/main/docs/examples/cookies.example.json
Author
Owner

@hextor1 commented on GitHub (Dec 30, 2024):

But unfortunately cookies is not working.

@hextor1 commented on GitHub (Dec 30, 2024): But unfortunately cookies is not working.
Author
Owner

@dumbmoron commented on GitHub (Dec 30, 2024):

You cannot add PO_Token and visitor data in cookies.json fil. you can add these two in api file which is created in nodejs. and also cookies.json only for cookies which you will add see exmaple here https://github.com/imputnet/cobalt/blob/main/docs/examples/cookies.example.json

what? 😭

you can add po_token and visitor_data as regular cookie values into the cookie

0f65165671/api/src/processing/services/youtube.js (L70-L83)

(so if you have a cookie like a=b; c=d, you can just add the other values onto them like a=b; c=d; po_token=x; visitor_data=y)

@dumbmoron commented on GitHub (Dec 30, 2024): > You cannot add PO_Token and visitor data in cookies.json fil. you can add these two in api file which is created in nodejs. and also cookies.json only for cookies which you will add see exmaple here https://github.com/imputnet/cobalt/blob/main/docs/examples/cookies.example.json what? 😭 you can add `po_token` and `visitor_data` as regular cookie values into the cookie https://github.com/imputnet/cobalt/blob/0f6516567191706faedff58395befad0b795d648/api/src/processing/services/youtube.js#L70-L83 (so if you have a cookie like `a=b; c=d`, you can just add the other values onto them like `a=b; c=d; po_token=x; visitor_data=y`)
Author
Owner

@hextor1 commented on GitHub (Dec 30, 2024):

You cannot add PO_Token and visitor data in cookies.json fil. you can add these two in api file which is created in nodejs. and also cookies.json only for cookies which you will add see exmaple here https://github.com/imputnet/cobalt/blob/main/docs/examples/cookies.example.json

what? 😭

you can add po_token and visitor_data as regular cookie values into the cookie

0f65165671/api/src/processing/services/youtube.js (L70-L83)

(so if you have a cookie like a=b; c=d, you can just add the other values onto them like a=b; c=d; po_token=x; visitor_data=y)

Its talking about cookies.json file

@hextor1 commented on GitHub (Dec 30, 2024): > > You cannot add PO_Token and visitor data in cookies.json fil. you can add these two in api file which is created in nodejs. and also cookies.json only for cookies which you will add see exmaple here https://github.com/imputnet/cobalt/blob/main/docs/examples/cookies.example.json > > what? 😭 > > you can add `po_token` and `visitor_data` as regular cookie values into the cookie > > https://github.com/imputnet/cobalt/blob/0f6516567191706faedff58395befad0b795d648/api/src/processing/services/youtube.js#L70-L83 > > (so if you have a cookie like `a=b; c=d`, you can just add the other values onto them like `a=b; c=d; po_token=x; visitor_data=y`) Its talking about cookies.json file
Author
Owner

@dumbmoron commented on GitHub (Dec 30, 2024):

Its talking about cookies.json file

yeah, me too

@dumbmoron commented on GitHub (Dec 30, 2024): > Its talking about cookies.json file yeah, me too
Author
Owner

@hextor1 commented on GitHub (Dec 30, 2024):

Its talking about cookies.json file

Cookies is still working??

@hextor1 commented on GitHub (Dec 30, 2024): > > Its talking about cookies.json file Cookies is still working??
Author
Owner

@gamersindo1223 commented on GitHub (Dec 30, 2024):

Tested it right now, not working currently

@gamersindo1223 commented on GitHub (Dec 30, 2024): Tested it right now, not working currently
Author
Owner

@gamersindo1223 commented on GitHub (Dec 30, 2024):

I don't know if my ip got blacklisted, or if it's a problem with my cookies

@gamersindo1223 commented on GitHub (Dec 30, 2024): I don't know if my ip got blacklisted, or if it's a problem with my cookies
Author
Owner

@hextor1 commented on GitHub (Dec 30, 2024):

I don't know if my ip got blacklisted, or if it's a problem with my cookies

Try isp proxies its working now a days. all other ips blocked

@hextor1 commented on GitHub (Dec 30, 2024): > I don't know if my ip got blacklisted, or if it's a problem with my cookies Try isp proxies its working now a days. all other ips blocked
Author
Owner

@gamersindo1223 commented on GitHub (Dec 30, 2024):

Alright!

@gamersindo1223 commented on GitHub (Dec 30, 2024): Alright!
Author
Owner

@coderonex commented on GitHub (Dec 31, 2024):

Its talking about cookies.json file

yeah, me too

Is there a tutorial on how to get cookie, po_token and visitor_data?

@coderonex commented on GitHub (Dec 31, 2024): > > Its talking about cookies.json file > > yeah, me too Is there a tutorial on how to get cookie, po_token and visitor_data?
Author
Owner

@ZEREX222 commented on GitHub (Dec 31, 2024):

the same question. OAuth2 is not working. I saw someone added support YouTube cookies. I tried to use them directly copied from YouTube they are not working. Saw some po_token and visitor_data also have no idea where can I find it. On my local instance everything is working except YouTube. Thanks for explaining how to fix YouTube in advanced.

@ZEREX222 commented on GitHub (Dec 31, 2024): the same question. OAuth2 is not working. I saw someone added support YouTube cookies. I tried to use them directly copied from YouTube they are not working. Saw some po_token and visitor_data also have no idea where can I find it. On my local instance everything is working except YouTube. Thanks for explaining how to fix YouTube in advanced.
Author
Owner

@hamaadraza commented on GitHub (Jan 2, 2025):

If anyone wants to find out po_token and visitor data they can visit /embed link of a video. Inspact the /player request and you will find the po_token and visitorData in the payload of that request.

Screenshot:

image

@hamaadraza commented on GitHub (Jan 2, 2025): If anyone wants to find out po_token and visitor data they can visit /embed link of a video. Inspact the /player request and you will find the po_token and visitorData in the payload of that request. Screenshot: ![image](https://github.com/user-attachments/assets/fce5e16f-8064-4eb0-b239-c44a1d7026e1)
Author
Owner

@coderonex commented on GitHub (Jan 16, 2025):

不知道是不是我的ip被列入黑名单了,还是我的cookies有问题

尝试一下 isp 代理,现在它已经可以工作了。所有其他 ip 均被阻止

Is the isp proxy still available?

@coderonex commented on GitHub (Jan 16, 2025): > > 不知道是不是我的ip被列入黑名单了,还是我的cookies有问题 > > 尝试一下 isp 代理,现在它已经可以工作了。所有其他 ip 均被阻止 Is the isp proxy still available?
Author
Owner

@coderonex commented on GitHub (Jan 20, 2025):

If anyone wants to find out po_token and visitor data they can visit /embed link of a video. Inspact the /player request and you will find the po_token and visitorData in the payload of that request.

Screenshot:

image

May I ask if you have deployed your own instance of cobalt? Can you download youtube videos once these are configured?
How do I get cookies? Do I need to log in for cookies, potoken?

@coderonex commented on GitHub (Jan 20, 2025): > If anyone wants to find out po_token and visitor data they can visit /embed link of a video. Inspact the /player request and you will find the po_token and visitorData in the payload of that request. > > Screenshot: > > ![image](https://github.com/user-attachments/assets/fce5e16f-8064-4eb0-b239-c44a1d7026e1) May I ask if you have deployed your own instance of cobalt? Can you download youtube videos once these are configured? How do I get cookies? Do I need to log in for cookies, potoken?
Sign in to join this conversation.