Download the raw, unfiltered traffic data

To produce the traffic data work items for the consumer robot, you need first to get your hands on the raw source data. You open the producer.robot file and implement the download logic there:


*** Settings ***
Documentation       Inhuman Insurance, Inc. Artificial Intelligence System robot.
...                 Produces traffic data work items.

Library             RPA.HTTP

*** Tasks ***
Produce traffic data work items
    Download traffic data

*** Keywords ***
Download traffic data
    ...    ${OUTPUT_DIR}${/}traffic.json
    ...    overwrite=True

Downloading the JSON file to the output folder (using the convenient ${OUTPUT_DIR} variable) enables viewing that file in the Control Room artifacts section.

You run the producer task. The traffic.json file is downloaded and stored inside the output folder. Now you have the raw data available!