import recognition import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) client = recognition.recog() id = 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2187965283,3753919686&fm=26&gp=0.jpg' image = requests.get(id).content res = client.basicGeneral(image) for i in range(len(res['words_result'])): print(res['words_result'][i]['words'])