"""
    instabot example

    Workflow:
        1) Reads user_ids from blacklist and whitelist
        2) likes several last medias by users in your timeline

    Notes:
        blacklist and whitelist files should contain user_ids - each one on the
        separate line.
        Example:
            1234125
            1234124512
"""

import sys
import os
from tqdm import tqdm

sys.path.append(os.path.join(sys.path[0],'../../'))
from instabot import Bot

bot = Bot(whitelist="whitelist.txt",
          blacklist="blacklist.txt")
bot.login()

timeline_medias = bot.get_timeline_medias()
for media in tqdm(timeline_medias, desc="timeline"):
    bot.like_user_id(bot.get_media_owner(media))

@@ -530,20 +530,8 @@
 xt%22)
-%0Abot.login()
 %0A%0Ati

remove old version function