drawrowfly / instagram-scraper

Instagram Scraper. Scrape useful data/posts from instagram users, hashtag and locations pages. Comments and people who liked specific posts and soon more. No login or API keys are required
531 stars 61 forks source link

Request Errors #71

Open dycops opened 2 years ago

dycops commented 2 years ago

If you have a problems with its RequestError: Error: Exceeded maxRedirects. Probably stuck in a redirect loop or MaxListenersExceededWarning: Possible EventEmitter memory leak detected.

just add, it's work for me

session: "sessionid=BLAHLBAH; ds_user_id=YOUR_ID"

olivierodo commented 2 years ago

Thanks @dycops!

falkenbach commented 1 year ago

Thanks @dycops looks like its a requirement from July, single sessionid no longer enough

thoriqazzikraa commented 1 year ago

If you have a problems with its RequestError: Error: Exceeded maxRedirects. Probably stuck in a redirect loop or MaxListenersExceededWarning: Possible EventEmitter memory leak detected.

just add, it's work for me

session: "sessionid=BLAHLBAH; ds_user_id=YOUR_ID"

what is ds_user_id? my instagram username?

dycops commented 1 year ago

@thoriqazzikraa open dev tools > application > cookies chrome_o1ZsJQLl5D

thoriqazzikraa commented 1 year ago

@thoriqazzikraa open dev tools > application > cookies chrome_o1ZsJQLl5D

i got it but can you do example for this? idk how to put my ds_user in options

thoriqazzikraa commented 1 year ago

@thoriqazzikraa open dev tools > application > cookies chrome_o1ZsJQLl5D

Screenshot_2022-10-27-01-18-44-13_375f2148cf8fa4d7b3a7c6a3ff0c7e6c

thoriqazzikraa commented 1 year ago

nah i think the cookie is starts with ig_did

dycops commented 1 year ago

@thoriqazzikraa check your options in session key

options: {
...
session: "sessionid=YOUR_SESSION_ID; ds_user_id=YOUR_ID"
...
}

not set "sessionid="