Gimenz / insta-fetcher

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

how to get session id??? #3

Open Gimenz opened 2 years ago

Gimenz commented 2 years ago

most people asking this question, to get session id is easier, but they lazy to find it on the dev tools or chrome extension. if you want to get cookie/sess id with one click, you can watch this (need Computer). => How to Get Facebook/Instagram's Cookie

for mobile, you can try eruda. 
don't be lazy bruh. happy coding :)

next time, i'll add some function to get session id, any terminal maybe can use it. may it's requires login username and password. is safe bcz don't store username and password locally, or i didn't put logger here 😃

AmWeebs30 commented 2 years ago

Hi, I don't think eruda can be used on the Instagram web. I've tried it using a script, but the tools still don't appear.

Gimenz commented 2 years ago

yea, did you run it on android/termux? I was added getSession function, you can try it.

AmWeebs30 commented 2 years ago

I already try it, and return error..

Screenshot_20220128-135034_Discord-Beta

Gimenz commented 2 years ago

hmmm idk, but works for me. may the problem is in the headers, i'll update soon

getsession

AmWeebs30 commented 2 years ago

Alright, thanks, I can't wait for the update!! Good luck

Gimenz commented 2 years ago

maybe instagram was changed their cookie, old login method with just sessionid not working as now, i've update the getSessionId function to get full of cookie

read here #15