我就是不能开始使用instagram api。在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.