Monday, June 13, 2022

python instagram bot to upload posts

hello every one i'm trying to create a python instagram bot to upload posts..

error-gives-", line 132, in upload_photo
    if not compatible_aspect_ratio(get_image_size(photo)):
  File "/Users/mac/Documents/Abhinandan_Projects/complete_BOT_project/milestone_5/env/lib/python3.10/site-packages/instabot/api/api_photo.py", line 224, in get_image_size
    raise RuntimeError("Unsupported format")
RuntimeError: Unsupported format
code..
from instabot import Bot

bot=Bot()
bot.login(username='username',password='******')
bot.upload_photo('/Users/mac/Documents/Abhinandan_Projects/complete_BOT_project/milestone_5/ok.png',caption='ok its here')

it gives error..
", line 132, in upload_photo
    if not compatible_aspect_ratio(get_image_size(photo)):
  File "/Users/mac/Documents/Abhinandan_Projects/complete_BOT_project/milestone_5/env/lib/python3.10/site-packages/instabot/api/api_photo.py", line 224, in get_image_size
    raise RuntimeError("Unsupported format")
RuntimeError: Unsupported format

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA6_Mp5MYC0QE71SiVj8CtFzCdbad%2BftQV%3DR-rsHgye2SbK0%3Dg%40mail.gmail.com.

No comments:

Post a Comment