ping / instagram_private_api

A Python library to access Instagram's private API.
MIT License
2.95k stars 612 forks source link

Error trying return the media_likers and other media informations #333

Open gabrielmayers opened 3 years ago

gabrielmayers commented 3 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Which client are you using?


Describe the Bug/Error:

I'm trying to return media informations, but when I try to use any method like: media_likers or media_comments, I receive the error below. Is it a problem with my code or not? Because I'm trying to print the response.


Paste the output of python -V here: Python 3.6.5

Code:

# Example code that will produce the error reported
from helper import comment, auth
from instagram_private_api import Client, ClientCompatPatch

user_name = 'einsteindadepressao'
password = '260501'

# My auth
api_auth = auth(user_name, password)

a = api_auth.media_likers(2527833075279500248)

print(a)

Error/Debug Log:

  File "\programs\python\python36\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u0303' in position 577: character maps to <undefined>
anuuzsoni commented 3 years ago

Do you know how to follow and unfollow??plzz tell

gabrielmayers commented 3 years ago

Do you know how to follow and unfollow??plzz tell

https://instagram-private-api.readthedocs.io/en/latest/api.html#instagram_private_api.Client.friendships_create

anuuzsoni commented 3 years ago

Do you know how to follow and unfollow??plzz tell

https://instagram-private-api.readthedocs.io/en/latest/api.html#instagram_private_api.Client.friendships_create

Thanku for ur reply.... can u plzz show me a example from login to follow?? i could not even login...

anuuzsoni commented 3 years ago

it is showing ClientError: Not Found

gabrielmayers commented 3 years ago

Check the credentials that u're passing in the Client(username, password)