def __init__(self, test=True, i_pages=3, i_hashtag=20, like_pages=False, like_hashtag=False):
    self.test = test
    self.auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
    self.auth.set_access_token(access_token, access_token_secret)
    self.api = tweepy.API(self.auth)
    self._file_following = 'to_follow.txt'
    self.i_pages = i_pages
    self.i_hashtag = i_hashtag
    self.like_pages = like_pages
    self.like_hashtag = like_hashtag
    self.pbar = 0
    self.iteractions = ((self.i_pages * len(self.following_pages())) + self.i_hashtag)
    if (self.test == True):
        self.hellow_world()
        self.retweepy()
    while (self.test == False):
        print()
        print('Starting!', datetime.now())
        print()
        with tqdm(total=self.iteractions) as self.pbar:
            self.retweepy_following()
            tqdm.write('Just give me 5 more minutes to sleep please!')
            sleep((5 * 60))
            self.retweepy()
        print()
        print('Iteraction done!', datetime.now())
        sleep((30 * 60))
def __init__(self, test=True, i_pages=3, i_hashtag=20, like_pages=False, like_hashtag=False):
    self.test = test
    self.auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
    self.auth.set_access_token(access_token, access_token_secret)
    self.api = tweepy.API(self.auth)
    self._file_following = 'to_follow.txt'
    self.i_pages = i_pages
    self.i_hashtag = i_hashtag
    self.like_pages = like_pages
    self.like_hashtag = like_hashtag
    self.pbar = 0
    self.iteractions = ((self.i_pages * len(self.following_pages())) + self.i_hashtag)
    if (self.test == True):
        self.hellow_world()
        self.retweepy()
    while (self.test == False):
        print()
        print('Starting!', datetime.now())
        print()
        with tqdm(total=self.iteractions) as self.pbar:
            self.retweepy_following()
            tqdm.write('Just give me 5 more minutes to sleep please!')
            sleep((5 * 60))
            self.retweepy()
        print()
        print('Iteraction done!', datetime.now())
        sleep((30 * 60))