import csv


def loadGrabbers(fname="grabbers.csv"):
    """
    Read a CSV file and return contents as a list of dictionaries.
    """
    columns = ["ID", "call", "title", "name", "loc", "site", "url"]
    grabbers = []
    with open(fname) as f:
        reader = csv.reader(f, delimiter=",", quotechar='"')
        for row in reader:
            row = [x.strip() for x in row]
            row = [x.strip('"') for x in row]
            if len(row) < 5 or row[0].startswith("#"):
                continue
            grabber = {}
            for i, key in enumerate(columns):
                grabber[key] = row[i]
            grabbers.append(grabber)
    return grabbers