Post Photo
To post photos on Instagram use we need to check whether the photo is in the given ratio. If the photo is not in the given ratio we need to resize it. The simplest ratio is 1:1.
Python3
from instabot import Bot bot = Bot() bot.login(username = "your_username" , password = "your_password" ) # Post photos # Photos need be resized and, if not in ratio given below. # jpg format works more better than others formats. # Acceptable Ratio of image:- 90:47, 4:5, 1:1(square image). # Keep image and program in same folder. # ----------------------------------------------------------- bot.upload_photo( "filename.jpg" , caption = "Write caption here." ) |
Output:
How to Make an Instagram Bot With Python and InstaBot?
In this article, we are going to see how to make an Instagram bot using Python and InstaBot.
Bots are really common these days to send messages, upload photos, send wishes, and many more things. Bots reduce our work, save time. Today we are creating an Instagram bot that can do the following things.
Contact Us