Deserialize cookiejar struct from binary file


(Kalachov Alex) #1

Hello everyone! Please help me!
I have a binary cookie file.
In python i’m parsing it like:

with open(’/usr/local/mail_validator/dv/scripts/cookies_mail.ru’, ‘rb’) as f:
Session.cookies.update(pickle.load(f))

So how can I deserialize this on Go ?


(Johan Dahl) #2

Hi. If you must have the file in pythons pickle format can you maybe parse it with https://github.com/hydrogen18/stalecucumber

Otherwise save it to the file as for example json


(Kalachov Alex) #3

Thank you man!)