from instapy_cli import client
username = "*****"
password = "*****"
video = 'document_2019-11-12_13-39-13.mp4'
text = 'This is a test'
cookie_file = 'COOKIE_FOR_USER.json' # default: `USERNAME_ig.json`
with client(username, password, cookie_file=cookie_file, write_cookie_file=True) as cli:
cli.upload(video, text)
File "D:/python/TelegramLogin/uploadvideotoinsta.py", line 16, in
cli.upload(video, text)
File "C:\Users\re**\Desktop\Python36\lib\site-packages\instapy_cli\cli.py", line 153, in upload
raise IOError("Unable to upload.")
OSError: Unable to upload.
My code is like follow:
But after runing get this error:
Why isn't it work me?
Python3.6