Gimenz / insta-fetcher

simple instagram metadata scraping
https://www.npmjs.com/package/insta-fetcher
GNU General Public License v3.0
78 stars 36 forks source link

Question about Cookies duration #19

Open freitagfelipe opened 2 years ago

freitagfelipe commented 2 years ago

I have a question about the cookie management. As I can see you store three Cookies in the "insta-fetcher/dist/config/Cookies.txt", the csrftoken, the ds_user_id and the sessionid. I'm not sure if I'm correct, but I checked the lifetime of these cookies and two of them have a lifetime of a year and one of them has a lifetime of three months. My question is if I need to be generating Cookies periodically.

Gimenz commented 2 years ago

hi. sorry, never tested about the cookie duration. idk for now, sorry.

aymenitc commented 1 year ago

For me, I have to get new cookie after few requests. It log me out Instagram

freitagfelipe commented 1 year ago

For me, I have to get new cookie after few requests. It log me out Instagram

It seems like they update the cookies duration. The cookies used to last longer.