mifi / instauto

Instagram bot / automation library written in Javascript for Node.js
797 stars 145 forks source link

Bug: Added `navigateToUserAndGetData` function to return values of `Instauto` function #120

Closed Muhammed-Rajab closed 2 years ago

Muhammed-Rajab commented 2 years ago
          PS: Created a new pull request because my code editor messed up my previous request

Summary

Problem faced: Can't fetch userId of a username to pass into getFollowersOrFollowing function.

Solution: Added navigateToUserAndGetData to the returning object of Instauto

Detailed

I was trying to fetch the list of following and followers of myself. In order to do that, getFollowersOrFollowing requires you to pass the userId. But there function required to fetch userId and other user details weren't exposed through the object returned by Instauto.