ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.71k stars 1.47k forks source link

Question about purpose of code in bot_follow #394

Closed pxtyr closed 6 years ago

pxtyr commented 6 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?

Describe your issue

I am working to make a small change to unfollow_non_followers to only unfollow those user which the only the bot has followed (as opposed to users that human has followed via instagram app, for example)

In the code below, I am wondering what is the purpose of calling the followed.txt here when it is also calling the followings from instagram directly via get_user_following

... followed_file = "followed.txt" followed_list = self.read_list_from_file(followed_file) unfollow_list = [] unfollow_list += [x for x in followed_list if x in nonfollowerslist] unfollow_list += [x for x in nonfollowerslist if x not in followed_list] unfollow_file = self.read_list_from_file("unfollow.txt") new_unfollow_list = [] new_unfollow_list += [x for x in unfollow_file if x in unfollow_list] new_unfollow_list += [x for x in unfollow_list if x not in unfollow_file] ...

Please let me know if I can offer any more detail. Thanks

BobZombiE69 commented 6 years ago

I wrote this line. the reason for this code is , to add new non-followers , to the "END" of unfollow_file , so this way , we keep track of non-followers by "ORDER" , so older non-followers will be unfollow first

stale[bot] commented 6 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.