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

How to get my followers and following accounts #39

Closed JoanJosep33 closed 3 years ago

JoanJosep33 commented 3 years ago

Hello. First of all, nice program.

I would like to know (I didn't found on the examples) how can I get the list of followers and following people from my account. Would you mind to tell me how could I get them?

Thanks.

drawrowfly commented 3 years ago

Scrape users who liked specific post REQUIRES AN ACTIVE SESSION Scrape followers REQUIRES AN ACTIVE SESSION Scrape following REQUIRES AN ACTIVE SESSION

apathre commented 3 years ago

You can use the following methods:-

instatouch.followers('username',options)

and

instatouch.following('username',options)

options to always include sessionid (How to mention sessionid in options -> This can be found in the documentation for options) (How to find sessionid -> Each time you log in to instagram.com, Instagram saves cookies. This cookie document contains session id. You can find sessionid by checking cookie data for Instagram saved on your browser)

Hope it helps

vishakhag6 commented 3 years ago

Hi, I am also trying to scrape the followers of a user and running this following command:

instatouch followers Instagram sessionid=34892121557%3AD8ja1zaXHcBz6t%3A29 But no output. Can you help pls?