def read(config, args):
    pp = pprint.PrettyPrinter()
    url = config['url'] / "/api/recording/"

    if (args['all'] is False) and (args['recording'] is None):
        print("No recording(s) specified to read. Use -h to see usage.")
        return

    params = {}

    if (args['recording'] is not None) and (args['all'] is False):
        url += args['recording'] + "/"
        if args['traffic'] is True:
            url += "traffic/"
        if args['start'] is not None:
            params['start'] = args['start']
        if args['offset'] is not None:
            params['offset'] = args['offset']

    token = auth.get_token(config)
    r = requests.get(url, params=params, headers={"X-Auth-Token": token})
    if r.status_code != 200:
        print("API returned status code %s" % (r.status_code))
        sys.exit(1)
    else:
        pp.pprint(json.loads(r.content))
dataset/ETHPy150Open emccode/heliosburn/heliosburn/hbcli/controllers/recording.py/read/operator `+` -> `/`