installed the eikon package, created an app id, but get the following errors when querying:
In [1]: import eikon as ek
In [2]: ek.set_app_id('xxxxxxxxx')
No handlers could be
found for logger "pyeikon"
In [3]: ek.set_app_id('xxxxxxxxx')
In [4]: ek.get_news_headlines('R:LHAG.DE',
date_from='2017-04-05T09:00:00', date_to='2017-04-05T18:00:00')
---------------------------------------------------------------------------
MissingSchema
Traceback (most recent call last)
<ipython-input-4-498a2e2a3dbc> in <module>()
----> 1 ek.get_news_headlines('R:LHAG.DE',
date_from='2017-04-05T09:00:00', date_to='2017-04-05T18:00:00')
/home/wqmo/packages/anaconda2/lib/python2.7/site-packages/eikon/news_request.pyc
in get_news_headlines(query, count, date_from, date_to, raw_output, debug)
104 payload.update({'dateTo':
to_datetime(date_to).isoformat()})
105
--> 106 result =
eikon.json_requests.send_json_request(News_Headlines_UDF_endpoint, payload,
debug=debug)
107
108 if raw_output:
/home/wqmo/packages/anaconda2/lib/python2.7/site-packages/eikon/json_requests.pyc
in send_json_request(entity, payload, ID, debug)
75
headers={'Content-Type':
'application/json',
76
'x-tr-applicationid': profile.get_application_id()},
--->
77
timeout=60)
78
79 if
debug:
/home/wqmo/packages/anaconda2/lib/python2.7/site-packages/requests/sessions.pyc
in post(self, url, data, json, **kwargs)
563 """
564
--> 565
return self.request('POST', url, data=data, json=json, **kwargs)
566
567 def put(self,
url, data=None, **kwargs):
/home/wqmo/packages/anaconda2/lib/python2.7/site-packages/requests/sessions.pyc
in request(self, method, url, params, data, headers, cookies, files, auth,
timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
502
hooks = hooks,
503 )
--> 504 prep
= self.prepare_request(req)
505
506 proxies = proxies or {}
/home/wqmo/packages/anaconda2/lib/python2.7/site-packages/requests/sessions.pyc
in prepare_request(self, request)
434
auth=merge_setting(auth, self.auth),
435
cookies=merged_cookies,
-->
436
hooks=merge_hooks(request.hooks, self.hooks),
437 )
438 return p
/home/wqmo/packages/anaconda2/lib/python2.7/site-packages/requests/models.pyc
in prepare(self, method, url, headers, files, data, params, auth, cookies,
hooks, json)
300
301 self.prepare_method(method)
--> 302
self.prepare_url(url, params)
303
self.prepare_headers(headers)
304
self.prepare_cookies(cookies)
/home/wqmo/packages/anaconda2/lib/python2.7/site-packages/requests/models.pyc
in prepare_url(self, url, params)
380
error = error.format(to_native_string(url, 'utf8'))
381
-->
382
raise MissingSchema(error)
383
384
if not host:
MissingSchema: Invalid
URL 'None': No schema supplied. Perhaps you meant http://None?
How can I fix this ?
Thanks