Getting the url of the first sound file in an observation using @pisum's Jupyter Workbook

as noted here: https://forum.inaturalist.org/t/select-observations-to-batch-download-from-list-of-observation-ids/61657/6

add a line to the parse_fields list, as appropriate:

  • for the url of the first sound file on an observation:
    {'label': 'sound_1_url', 'ref': 'sounds[0].file_url'},
  • for a comma-separated list of all the sound file urls for each observation:
    {'label': 'sound_urls', 'ref': 'sounds', 'function': 'filter_select', 'params': {'select_ref': 'file_url', 'separator': ', '}},
  • for a count of the number of sounds per observation:
    {'label': 'sounds_count', 'ref':'sounds', 'function': 'count'},
1 Like