Gimenz / insta-fetcher

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

I Think Instagram Has Changed Session ID Format, Its Way Too Big Now! #15

Closed xydv closed 2 years ago

xydv commented 2 years ago

Also Login Doesn't Work Via New Session Id For Your Package!

image

Gimenz commented 2 years ago

have you try it to use with many function?

xydv commented 2 years ago

What Is Many Function, Example?

jacktheboss220 commented 2 years ago

Also Login Doesn't Work Via New Session Id For Your Package!

image

same while tring to get session_id

xydv commented 2 years ago

@Gimenz Update:- I Tried To Login Via Different Account (Personal) & Same Thing Happened!

Gimenz commented 2 years ago

i've update the session id format, into full of cookie. try it

xydv commented 2 years ago

Still Same :(, Also This Long Cookie Isn't Working With Your Library! SS Below 👇🏻

image

If I Try To Fetch Post With This Session ID, This Happens 👇🏻

image

Also Web Cookies Are Longer Now!

image

jacktheboss220 commented 2 years ago

Still Same :(, Also This Long Cookie Isn't Working With Your Library! SS Below 👇🏻

image

If I Try To Fetch Post With This Session ID, This Happens 👇🏻

image

Also Web Cookies Are Longer Now!

image

getting same error any fix?

Gimenz commented 2 years ago

ah sorry, i forgot to write new example, just copy all cookies that returned from getSessionId. maybe instagram has made changes, i try to use full of cookie, not just sessionid.

xydv commented 2 years ago

Ok, Write New Examples & Drop A Link! :) I Already Have Full Cookies!

jacktheboss220 commented 2 years ago

ah sorry, i forgot to write new example, just copy all cookies that returned from getSessionId. maybe instagram has made changes, i try to use full of cookie, not just sessionid.

thnx worked :)

xydv commented 2 years ago

ah sorry, i forgot to write new example, just copy all cookies that returned from getSessionId. maybe instagram has made changes, i try to use full of cookie, not just sessionid.

thnx worked :)

How Worked?, Mine Not Working!

jacktheboss220 commented 2 years ago

ah sorry, i forgot to write new example, just copy all cookies that returned from getSessionId. maybe instagram has made changes, i try to use full of cookie, not just sessionid.

thnx worked :)

How Worked?, Mine Not Working!

remove 'encodeURIComponent' from session.js line 67 then run copy all.

xydv commented 2 years ago

Attach Your Session.js Here!, How Can I Do That In Server?

Gimenz commented 2 years ago

can you show ig password here? just password, i want know is the password contains special character.

remove 'encodeURIComponent' from session.js line 67 then run copy all.

jacktheboss220 commented 2 years ago

can you show ig password here? just password, i want know is the password contains special character.

remove 'encodeURIComponent' from session.js line 67 then run copy all.

yes it contain '@'

xydv commented 2 years ago

can you show ig password here? just password, i want know is the password contains special character.

remove 'encodeURIComponent' from session.js line 67 then run copy all.

Mine Also Contains @ And #

Gimenz commented 2 years ago

yes it contain '@'

i use encodeURI bcz i think it can solve the problem, my password contains three dots ... could i remove it?

xydv commented 2 years ago

yes it contain '@'

i use encodeURI bcz i think it can solve the problem, my password contains three dots ... could i remove it?

Yes, Its Causing Problem!

Gimenz commented 2 years ago

ok, on next PR.

jacktheboss220 commented 2 years ago

yes it contain '@'

i use encodeURI bcz i think it can solve the problem, my password contains three dots ... could i remove it?

try using without encodeURI, it may work fine.

xydv commented 2 years ago

So I Removed encodeURIComponent But Still Same Issue @jacktheboss220, Can We Talk On Instagram?

image

Gimenz commented 2 years ago

uh, wait.. what your problem? can you send error here?

xydv commented 2 years ago

image

xydv commented 2 years ago

Should I Send You My Username Password?, We Can Talk On Telegram If You Have!

Gimenz commented 2 years ago

hmmm, are you using old constructor method?

image

xydv commented 2 years ago

hmmm, are you using old constructor method?

image

Yes! Ofcourse!, Is There New?

Gimenz commented 2 years ago

hahaha, i think you've used the new method.

i was said here, copy all cookies, try it!

ah sorry, i forgot to write new example, just copy all cookies that returned from getSessionId. maybe instagram has made changes, i try to use full of cookie, not just sessionid.

xydv commented 2 years ago

Thanks!, Now Working!

Gimenz commented 2 years ago

sorry my bad english :D

may this can help you image

jacktheboss220 commented 2 years ago

So I Removed encodeURIComponent But Still Same Issue @jacktheboss220, Can We Talk On Instagram?

image

just copy all session_id

jacktheboss220 commented 2 years ago

sorry my bad english :D

may this can help you image

can you make these changes in npm .

it will be easy to get from npm without editing from my side. ;) thnx for the help

xydv commented 2 years ago

Done!!!!!, Thanks For Your Library!

Gimenz commented 2 years ago

changes for what? can you explain here?

sorry my bad english :D may this can help you image

can you make these changes in npm .

it will be easy to get from npm without editing from my side. ;) thnx for the help

jacktheboss220 commented 2 years ago

changes for what? can you explain here?

sorry my bad english :D may this can help you image

can you make these changes in npm . it will be easy to get from npm without editing from my side. ;) thnx for the help

removing the 'encodeURIComponent'

Gimenz commented 2 years ago

oh yep, just wait.

removing the 'encodeURIComponent'

jacktheboss220 commented 2 years ago

oh yep, just wait.

removing the 'encodeURIComponent'

thnx. :) 😊

Gimenz commented 2 years ago

Hi @jacktheboss220 , i've removed the encodeURIComponent at getSessionId() function, but i made other function getCookie() that using encodeURIComponent. because i think if the password contains special character it causing Request Error 400 Bad Request.

Thanks.

xydv commented 2 years ago

@Gimenz I Am Creating A Similar Library As insta-fetcher For Serverless Micros, So A Question, How Do I Get app-id?

Gimenz commented 2 years ago

app-id for what?

xydv commented 2 years ago

image This One, Or Its Same For Everyone?