Skip to content

I can't upload photos #108

@ChopsKingsland

Description

@ChopsKingsland

I am trying to post a photo using this library, but it doesn't work...

from instapy_cli import client

username = '*************'
password = '****************'
image = 'img/blank.png'
text = 'This will be the caption of your photo.' + '\r\n' + 'You can also use hashtags! #hash #tag #now'

with client(username, password) as cli:
    cli.upload(image, text)

and the error I get is:

Error parsing error response: Expecting value: line 1 column 1 (char 0)
Error is >>
    Not Found

Something went bad.
Please retry or send an issue on https://github.com/b3nab/instapy-cli

Traceback (most recent call last):
  File "d:\Documents\Python\spacexLaunchesIG\instagram.py", line 9, in <module>
    cli.upload(image, text)
  File "C:\Users\charl\AppData\Roaming\Python\Python39\site-packages\instapy_cli\cli.py", line 153, in upload
    raise IOError("Unable to upload.")
OSError: Unable to upload.

any ideas how to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions