Post image and caption
Tags: #instagram
Author: Unknown

Input

Install packages

1
pip install instabot --user
Copied!

Import library

1
from instabot import Bot
2
import naas
Copied!

Model

Connect to your instagram account

1
bot = Bot()
2
bot.login(username = "USERNAME",
3
password = "PASSWORD")
Copied!

Output

Upload photo

1
bot.upload_photo("demo.jpg",
2
caption ="Naas is doing this.")
Copied!
Copy link
Edit on GitHub