pgrimaud / instagram-user-feed

This is a scrapper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.
MIT License
882 stars 138 forks source link

Multiple Account Get Follow By User #233

Closed neetkiss closed 3 years ago

neetkiss commented 3 years ago

How do I manage to send followers with multiple accounts? Code I used;

`$credentials = DB::table('takipcis')->get(); $cachePool = new FilesystemAdapter('Instagram', 0, DIR . '/../cache'); foreach($credentials as $credential): try { $api = new Api($cachePool); $api->login($credential->username, $credential->password); // 1518284433 is robertdowneyjr's account id $getUserID = $api->getProfile($request->post('followerUrl')); $userId = $getUserID->id;

            $follow = $api->follow($userId);

            //echo $follow . PHP_EOL;

        } catch (InstagramException $e) {
            print_r($e->getMessage());
        } catch (CacheException $e) {
            print_r($e->getMessage());
        }
        sleep(1);
    endforeach;`
pgrimaud commented 3 years ago

I'm not sure what you really want?

Could you explain more?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.