diezo / Ensta

🔥 Fast & Reliable Python Package For Instagram API - 2024
https://bit.ly/ensta-discord
MIT License
371 stars 44 forks source link

simplify refresh_csrf_token implementation #17

Closed radiohertz closed 1 year ago

radiohertz commented 1 year ago

existing code redundantly reads the cookiejar clears it, duplicates all the existing cookies into a new dict and then sets the old cookiejar when self.request_session.cookies.set can be used directly.

cc @diezo