def read_file(path):
    """Read the input two-column file into a dictionary.

    Parameters
    ----------
    path : str
        The path of the input file.

    Returns
    -------
    cams : dict
        The dictionary withe camera IDs and URLs as the keys and values.

    """
    with open(path) as f:
        lines = f.read().strip().splitlines()

    cams = {}
    for line in lines:
        parts = line.split()
        cams[parts[0]] = parts[1]

    return cams