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')

On Tue, 14 Jun 2022, 11:36 Abhinandan K, <[email protected]> wrote:

> 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 [email protected].
> 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
> <https://groups.google.com/d/msgid/django-users/CAA6_Mp5MYC0QE71SiVj8CtFzCdbad%2BftQV%3DR-rsHgye2SbK0%3Dg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACb%2BxSG4t4Gg12xbcY7qrrJq3rFi3J1jtzSOMnbxe9-cg4C83g%40mail.gmail.com.

Reply via email to