Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Is there a way to post an image from a url? #1250

Closed
xjxckk opened this issue Jan 22, 2020 · 4 comments
Closed

Is there a way to post an image from a url? #1250

xjxckk opened this issue Jan 22, 2020 · 4 comments
Labels

Comments

@xjxckk
Copy link

xjxckk commented Jan 22, 2020

Which example file are you using?

  • upload_photo.py

Describe your Question/Issue:

Is there a way to post an image from a url? I tried using bot.upload_photo() and got an error.


Code you are using:

from instabot import Bot

bot = Bot()
bot.login()

bot.upload_photo("https://i.imgur.com/HXHJL5s.jpg", caption="Test")

Error/Debug Log:

OSError: [Errno 22] Invalid argument: 'https://i.redd.it/ymy6zh4z8ac41.jpg'
2020-01-22 14:33:19,076 - INFO - Total requests: 21
@duplicate-issues
Copy link

Hey @xjxckk,

We did a quick check and this issue looks very darn similar to

This could be a coincidence, but if any of these issues solves your problem then I did a good job 😄

If not, the maintainers will get to this issue shortly.

Cheers,
Your Friendly Neighborhood ProBot

@bruvv
Copy link
Collaborator

bruvv commented Jan 22, 2020

No. At this moment it only is able to upload photos and not download other photos and upload them

@bruvv bruvv added the question label Jan 22, 2020
@xjxckk
Copy link
Author

xjxckk commented Jan 23, 2020

Ah ok, thanks.

Do you know of any way to do this with another library?

@bruvv
Copy link
Collaborator

bruvv commented Jan 23, 2020

you can add a PR to our branch ;)

@bruvv bruvv closed this as completed Jan 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants