mifi / instauto

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

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

Closed Muhammed-Rajab closed 2 years ago

Muhammed-Rajab commented 2 years ago

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.

mifi commented 2 years ago

thanks for your pr. please remove unrelated changes, or it's hard for me to see what your changes are

Muhammed-Rajab commented 2 years ago

I'm deeply sorry. I think my code formatter messed up. I will change that soon.

Muhammed-Rajab commented 2 years ago

I made a new pull request after disabling my code formatter. Hope that helps.