postaddictme / instagram-php-scraper

Get account information, photos, videos, stories and comments.
https://packagist.org/packages/raiym/instagram-php-scraper
MIT License
3.09k stars 800 forks source link

Scrape Followers / Following? #3

Closed RageBrahimi closed 6 years ago

RageBrahimi commented 8 years ago

Hey, nice project.

How about scraping following/followers - I know it requires a login.

This would be really cool!

raiym commented 8 years ago

Thank you for feedback. I don't know possible or not. But will see)

superyarik commented 7 years ago

instagram uses lazy loading for list of followers/follows, so if implement this, it will be like getFollowers('kevin', $result['after'], $result['query_id']);

raiym commented 7 years ago

@superyarik I didn't find the way to scrape followers and follows without auth

superyarik commented 7 years ago

post request, need to be paginate https://goo.gl/5oOMME

raiym commented 7 years ago

@superyarik thanks for the link. But this work only if you already has been authorized in Instagram.

Try to open this link in private mode and you will see only: {"status": "ok", "followed_by": {"count": 10796806}}

superyarik commented 7 years ago

oh, you're right. ugly solution - make special instagram account for such tricks and make authorized request from it. but i think now it's now so important feature.

raiym commented 7 years ago

@superyarik Yes this library only for scraping public data

just FYI https://github.com/mgp25/Instagram-API

raiym commented 7 years ago

@beshoo1 No plans to support login for now.

Please take a look at https://github.com/mgp25/Instagram-API

On Jan 4, 2017 10:35 AM, "beshoo" notifications@github.com wrote:

@raiym https://github.com/raiym is there any plan to support login to the account , if my account is private and i want to get my media from my account !

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/postaddictme/instagram-php-scraper/issues/3#issuecomment-270293098, or mute the thread https://github.com/notifications/unsubscribe-auth/AFb0Gc5Xsd-K4ZMNUR1GmJXLgAUHhtXhks5rOyGDgaJpZM4IswIb .

raiym commented 7 years ago

No solution. Close for now

raiym commented 7 years ago

Since we use auth for some queries now it is possible to get all followers of particular user

inkrement commented 7 years ago

@raiym how is it possible? I am not able to find the right method in the Readme file.

raiym commented 6 years ago

Example followers:

https://github.com/postaddictme/instagram-php-scraper/blob/master/examples/getAccountFollowers.php

Credits to @adam-szabo