b3nab / instapy-cli

:sparkles: Python library and CLI to upload photo and video on Instagram. W/o a phone!
MIT License
601 stars 98 forks source link

[BUG] #54

Open Red1Monster opened 5 years ago

Red1Monster commented 5 years ago

I used the upload-a-photo.py exmaple (but with my infos) but i get this error mesage and i have no idea what it means or how to fix it.

Here's the error message :

[IG] not found cookie/cookie_file >> login as default ClientError URLError <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)> (Code: 0, Response: )

And here's my code (with my info hashtagged) :

from instapy_cli import client

username = '#########' password = '########' image = 'downloads/what.png' text = 'My profile pic' + '\r\n' + 'You can use hashtags! #hash #tag #now'

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

I'm with python 3.7 on macOS with the lastest version on instapy (downloaded this morning with pip install)

sebastianibanezm commented 5 years ago

I have the same issue! Any idea on how to fix this?

andersonalvesalmeida commented 5 years ago

I have the same issue!

castaway2000 commented 5 years ago

this bug is an issue with instagram_private_api library: https://github.com/ping/instagram_private_api/issues/157

The Fix is to add the following at the top of the code you are running:

import ssl
ssl._create_default_https_context = ssl._create_unverified_context
n13north commented 4 years ago

not working again