Davincible / goinsta

Unofficial Instagram API written in Golang (v2022)
MIT License
183 stars 56 forks source link

Convert chrome cookies to ConfigFile #70

Open KazumiLine opened 8 months ago

KazumiLine commented 8 months ago

is it possible to convert from chrome cookies to config file?

because i bought the accounts with chrome cookies, and i got rur, sessionId, datr, csrftoken, mid.

i mapped the rur into ConfigFile.HeaderOptions["Ig-U-Rur"] and "Bearer IGT:2:"+base64("{\"ds_user_id\":\"userid\",\"sessionid\":\"sessionid\"}") into ConfigFile.HeaderOptions["Authorization"] and mid into ConfigFile.HeaderOptions["X-Mid"]

then i set ConfigFile.HeaderOptions["X-Ig-Www-Claim"] to "0" and ConfigFile.SessionNonce to ""

it shows you have been logged out, please log back in