Skip to main content

Package for bulk imports of news and timeseries from Refinitiv Eikon

Project description

Pretty Eikon

A package for data extraction and preprocessing of Eikon's company timeseries data and news

Table of contents

Requirements

  • pandas
  • eikon
  • eventlet
  • json
  • bs4

Time series

Company time series can be imported with the TimeSeries class

import dataproviders as dp
timeseries = dp.TimeSeries(eikon_app_key = eikon_app_key,
                         data = data,
                         outputdir = outputdir,
                         dateto = dateto,
                         datefrom = datefrom)

where data is the list of company codes or rics to import the data for, outputdir is the path to the outputdir where the data will be stored, dateto and datefrom are either strings of the form YYYY-MM-DD or datetime() objects

You can import all company data with

timeseries.time_import()

News

Company news can be imported with the NewsProvider class

import dataproviders as dp
news = dp.NewsProvider(eikon_app_key  = eikon_app_key,
                          data = data,
                          outputdir = outputdir,
                          dateto = dateto,
                          datefrom = datefrom)

where datais the list of company codes to import the data for, outputdir is the path to the outputdir where the data will be stored, dateto and datefrom are either strings of the form YYYY-MM-DD or datetime() objects

You can import news for all companies in the data by invoking

news.mine_news(do_clean)

where do_clean = True if the preprocessed text body should be outputted instead of the raw html from eikon.

Or, to import one day (date) of news for a single company (ric)

news.do_day(date, ric, do_clean)

You can use the preprocessing method to clean a raw html with

news.html_cleaner(self, pathtodir, destindir)

where pathtodir is the directory containing the raw html textfile(s) and destindir is the output directory where cleaned files are written with the same filename as in the original directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pretty-eikon-0.0.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pretty_eikon-0.0.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file pretty-eikon-0.0.1.tar.gz.

File metadata

  • Download URL: pretty-eikon-0.0.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for pretty-eikon-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e0bc3d0870d8f30c276373b21f7088a3bb6ef085a1e5a6864c553bf145aa62ce
MD5 7b0e2bcf1ad38ad21f2b7739ccb3d7c7
BLAKE2b-256 ba0301e53a22814b969249d90b9002935fb02f4f195506ac72deb648e8a1d5b0

See more details on using hashes here.

File details

Details for the file pretty_eikon-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pretty_eikon-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for pretty_eikon-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 511243f85bfd434ca3cb2ea31ab737bfefb45fc4ada19a931199193d2e4e240d
MD5 30c2437b44f4b2463a87493d8a1fec44
BLAKE2b-256 dd1bc5cb30ee73488f6b9d9604f2d1c2af5dd1bff94b0d9567f240c81b48389e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page