I am trying to retrieve news data with Eikon Web and Scripting API from Eikon Database.
The Headline retrieval works fine but if I try to get news texts I get the following:
21 for index, headline_row in headlines_summary.iterrows(): ---> 22 story = ek.get_news_story(headline_row['storyId']) 23 stories.append(story) 24 sleep(0.1) C:\Anaconda3\lib\site-packages\eikon\news_request.py in get_news_story(story_id, raw_output, debug) 161 app_id = eikon.get_app_id() 162 payload = {'attributionCode': '', 'productName': app_id, 'storyId': story_id} --> 163 json_data = eikon.json_requests.send_json_request(News_Story_UDF_endpoint, payload, debug=debug) 164 165 if raw_output: C:\Anaconda3\lib\site-packages\eikon\json_requests.py in send_json_request(entity, payload, ID, debug) 80 if response.status_code == 200: 81 result = response.json() ---> 82 check_server_error(result) 83 return result 84 if response.status_code == 401: C:\Anaconda3\lib\site-packages\eikon\json_requests.py in check_server_error(server_response) 128 else: 129 status_code = server_response['ErrorCode'] --> 130 raise requests.HTTPError(error_message, response=server_response) 131 132 # check DataGrid error HTTPError: 503 Service Unavailable
I tried to put in some sleeptime. Without success.
Is there a known solution for my problem?
Thanks in advance.