from utils import CSVScraper

from datetime import date


class OntarioCandidatesPersonScraper(CSVScraper):
    csv_url = 'https://docs.google.com/spreadsheets/d/e/2PACX-1vQhrWSeOEC9DaNN2iDKcPC9IH701Al0pELevzSO62maI9WXt1TGvFH2fzUkXjUfujc3ontePcroFbT2/pub?output=csv'
    encoding = 'utf-8'
    updated_at = date(2018, 1, 31)
    contact_person = 'andrew@newmode.net'
    corrections = {
        'district name': {
            'Brantford-Brant': 'Brantford\u2014Brant',
        }
    }

    def is_valid_row(self, row):
        return any(row.values()) and row['last name'] and row['first name']

from utils import CSVScraper

from datetime import date


class OntarioCandidatesPersonScraper(CSVScraper):
    csv_url = 'https://docs.google.com/spreadsheets/d/e/2PACX-1vQhrWSeOEC9DaNN2iDKcPC9IH701Al0pELevzSO62maI9WXt1TGvFH2fzUkXjUfujc3ontePcroFbT2/pub?gid=881365071&single=true&output=csv'
    encoding = 'utf-8'
    updated_at = date(2018, 1, 31)
    contact_person = 'andrew@newmode.net'
    corrections = {
        'district name': {
            'Brantford-Brant': 'Brantford\u2014Brant',
        }
    }

    def is_valid_row(self, row):
        return any(row.values()) and row['last name'] and row['first name']

Make CSV URL more specific