#HOW CAN I GET MY WEB COOKIES WITH PYTHON BRO

29 messages · Page 1 of 1 (latest)

still aspenBOT
#

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

uneven cargo
#

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")
mild elm
mild elm
uneven cargo
mild elm
uneven cargo
uneven cargo
mild elm
#

programatically getting my youtube cookie then logging into it on different browser

#

for other webs too but rn i want youtube

uneven cargo
#

u can fetch cookies programatically

#

you don't need to get it from your browser

mild elm
#

i want to get that cookie, to log into it on another browser

uneven cargo
#

wrong approach if it's going to be repeated

mild elm
#

its not really gonna be a one time thing though

uneven cargo
#

wrong approach

#

rethink your choices

mild elm
#

i want cookies specifically because using login info can require veirficatio

uneven cargo
#

They rarely change

mild elm
uneven cargo
mild elm
toxic tusk
#

The logic should be rather simple. Login with your credentials and get the cookiess