Thanks for your question :clap:, if someone gives you an answer it would be great if you thanked them with a :white_check_mark: in response. This response will earn you both points for special roles on this server.
HOW CAN I GET MY WEB COOKIES WITH PYTHON BRO
#HOW CAN I GET MY WEB COOKIES WITH PYTHON BRO
29 messages · Page 1 of 1 (latest)
you cannot do this on your pre installed chrome binary; since 2024 google implemented app bound encryption. those encryption keys are tied specifically to the chrome binary itself.
essentially there is no other way to get your cookies without an extension with permissions to read cookie data or doing it manually from the dev tools which I don't think you want.
what I recommend you is use playwright and launch a new session
context = browser.new_context()
storage = context.storage_state(path="state.json")
context =
browser.new_context(storage_state="state.json")
launching a new session doesnt give me MY account cookies though does it??
what exactly is an extension with permission to read cookie data?
it's a saperate browser profile not related to your browser one
but thats useless to me
what's your end goal
programatically getting my youtube cookie then logging into it on different browser
for other webs too but rn i want youtube
for my current youtube session that is logged in though, with my account
i want to get that cookie, to log into it on another browser
if it's one time just get it from the dev tools
wrong approach if it's going to be repeated
its not really gonna be a one time thing though
im not sure what approach i should be taking then?
i want cookies specifically because using login info can require veirficatio
Reuse the cookies
They rarely change
no thats noob
scrape the cookies from pyright
please elaborate
The logic should be rather simple. Login with your credentials and get the cookiess