📅  最后修改于: 2022-03-11 14:46:09.783000             🧑  作者: Mango
from instabot import Bot
bot = Bot()
bot.login(username="", password="")
upload a picture ********
bot.upload_photo("yoda.jpg", caption="biscuit eating baby")
follow someone ******
bot.follow("elonrmuskk")
******* send a message *****
bot.send_message("Hello from Dhaval", ['user1','user2'])
********* get follower info **********
my_followers = bot.get_user_followers("dhavalsays")
for follower in my_followers:
print(follower)
bot.unfollow_everyone()