from instabot import Bot
import openpyxl
import smtplib
bot = Bot()
bot.login(username="xxx", password="xxx")
filepath = "C:/Users/Username/OneDrive/Desktop/excel/instagram2.xlsx"
wb = openpyxl.load_workbook(filepath)
sheet = wb.get_sheet_by_name("insta")
for i in range(2,7):
bot_name = sheet.cell(row=i, column=1).value
price = sheet.cell(row=i, column=3).value
title = sheet.cell(row=i, column=4).value
hashtag = sheet.cell(row=i, column=5).value
url = sheet.cell(row=i, column=6).value
description = str(title+"\n\n"+price+"\n\n"+hashtag+"\n\n"+url)
img = "C:/Users/Username/OneDrive/Desktop/instagram/instagram.bot"+str(i)+".jpg"
bot.upload_photo(img,caption=description)
For me, I made an Instagram bot. My posts' descriptions are in Excel. Only the URL can be recognized as a string of words rather than the actual URL when the software posts on Instagram. Therefore, you cannot enter the URL site when you click the "URL". How do I enable the application to identify it as a URL?