python instagram bot to upload posts

124 views
Skip to first unread message

Abhinandan K

unread,
Jun 14, 2022, 2:07:09 AM6/14/22
to django...@googlegroups.com
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

Kasper Laudrup

unread,
Jun 14, 2022, 4:45:50 AM6/14/22
to django...@googlegroups.com
On 14/06/2022 08.06, Abhinandan K wrote:
> hello every one i'm trying to create a python instagram bot to upload
> posts..
>

That's great but how is this related to Django?

Maybe you should consider finding another place for all your questions
as none of them really fit here.

Before doing that I would also strongly recommend reading something like
this:

https://www.propublica.org/nerds/how-to-ask-programming-questions

Kind regards,

Kasper Laudrup

UJJWAL CHAUDHARY

unread,
Jun 15, 2022, 11:12:36 AM6/15/22
to django...@googlegroups.com
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')
--
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...@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.
Reply all
Reply to author
Forward
0 new messages