Features.collect_telegraph_codes

Features.collect_telegraph_codes(confirmation_required=True, verbose=False)[source]

Collect telegraph code words from source web page.

Parameters
  • confirmation_required (bool) – whether to prompt a message for confirmation to proceed, defaults to True

  • verbose (bool or int) – whether to print relevant information in console as the function runs, defaults to False

Returns

data of telegraph code words, and date of when the data was last updated

Return type

dict or None

Example:

>>> from pyrcs.other_assets import Features

>>> features = Features()

>>> telegraph_codes_dat = features.collect_telegraph_codes()
To collect data of telegraphic codes? [No]|Yes: yes

>>> type(telegraph_codes_dat)
<class 'dict'>
>>> print(list(telegraph_codes_dat.keys()))
['Telegraphic codes', 'Last updated date']