Я просто не могу начать использовать instagram api.недействителен JSON python-instagram
код из GitHub https://github.com/facebookarchive/python-instagram
from instagram.client import InstagramAPI
access_token = "***"
client_secret = "***"
scope = 'public_content'
api = InstagramAPI(access_token=access_token, client_secret=client_secret)
recent_media, next_ = api.user_recent_media(user_id = "***", count=10)
for media in recent_media:
print("hey")
Ошибки:
Traceback (most recent call last):
File ...Python35-32\lib\site-packages\simplejson\decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Во время обработки вышеуказанного исключения, другое исключение произошло:
Traceback (most recent call last):
File "C:\Users\PolyProgrammist\AppData\Local\Programs\Python\Python35-32\lib\site-packages\instagram\bind.py", line 131, in _do_api_request raise InstagramClientError('Unable to parse response, not valid JSON.', status_code=response['status']) instagram.bind.InstagramClientError: (404) Unable to parse response, not valid JSON.
так что я должен делать? Я хочу просто использовать inst api (получить список подписчиков или как какой-то пост), как я могу это сделать – PolyProgrammist