TwitterFollowBot icon indicating copy to clipboard operation
TwitterFollowBot copied to clipboard

Does not save anything in already-followed.txt?

Open steffanjensen opened this issue 9 years ago • 2 comments

Hi my friend,

My already-followed.txt is just empty the bot does not save anything in there?

Here is my code am i doing something wrong?

from TwitterFollowBot import TwitterBot import re

import time

while True: my_bot = TwitterBot() my_bot.auto_follow("#indiedev", count=1) my_bot.auto_fav("indiedev", count=1) my_bot.auto_rt("indiedev", count=1)

time.sleep(10)

my_bot = TwitterBot("config2.txt")
my_bot.auto_follow("#appstore", count=1)
my_bot.auto_fav("appstore", count=1)
my_bot.auto_rt("appstore", count=1)

time.sleep(10)

my_bot = TwitterBot("config3.txt")
my_bot.auto_follow("#androiddev", count=1)
my_bot.auto_fav("androiddev", count=1)
my_bot.auto_rt("androiddev", count=1)

time.sleep(10)

steffanjensen avatar Dec 16 '15 10:12 steffanjensen

Got it to work by using my_bot.sync_follows() i think

steffanjensen avatar Dec 16 '15 15:12 steffanjensen

already-followed.txt is only updated when you call auto_unfollow_nonfollowers(). This is to prevent future follow actions from following the same people that you've already followed-then-unfollowed.

Calling sync_follows() will sync your current follows (people you follow) and followers (people who follow you) to separate local files.

In total, that's 3 separate files for your follower information:

  • People you currently follow
  • People who currently follow you
  • People you've followed in the past then unfollowed because they didn't follow you back

Hope that clears things up.

rhiever avatar Dec 16 '15 16:12 rhiever