rfwtools.utils.get_events_from_web
- rfwtools.utils.get_events_from_web(data_server=None, wfb_base_url=None, begin='2018-01-01 00:00:00', end=None)[source]
Downloads a list of events from the waveforms web server which includes only their metadata.
- Parameters:
data_server (
Optional[str]) – The hostname of the service running the waveform browser. Defaults to Config().data_server.wfb_base_url (
Optional[str]) – The base string of the URL for the waveform browser. Defaults to Config().wfb_base_url.begin (
str) – A string formatted “%Y-%m-%d %H:%M:%S” that marks the beginning of the requested range. Defaults to a date well before the first harvester files were captured.end (
Optional[str]) – A string formatted “%Y-%m-%d %H:%M:%S” that marks the end of the requested range.
- Return type:
dict- Returns:
The JSON response converted to Python data structures. Outer structure is expected to be a dictionary.