def get_locations(soup):
    """Return a list of store location URL parameters."""

    # extract option tag with value="matching string"
    locs = soup.select('option[value^="/menu/?location="]')
    # value iterable from BS4
    locations = [value['value'] for value in locs]
    # print (locations, names)
    return locations