raise ImgurClientError('JSON decoding of response failed.') imgurpython.helpers.error.ImgurClientError: JSON decoding of response failed
问题 For the code below: 12 imgur_client = ImgurClient(client_id, client_secret, access_token, refresh_token) 13 for p in range(100, 500): 14 search = imgur_client.gallery_search('cat', window='all', sort='time', page=p) 15 for i in range(0, len(search)): 16 #print(search[i].link) 17 #print(dir(search[i])) 18 print(search[i].type) 19 if search[i].comment_count > 30 and search[i].type!='gif': 20 count = 0 21 image_file = urllib2.urlopen(search[i].link, timeout = 5) 22 image_file_name = 'images/'+