school_scraper.fsddistrict module

Primitives for reading francophone school district information

class school_scraper.fsddistrict.FSDDistrict(df)[source]

Bases: object

Abstraction around school district data parsed from the district website

Parameters

df – Pandas data frame describing the district

DISTRICT_FIELD = 'Région'
get_school(name)[source]

Gets a specific school from the district

Parameters

name (str) – name of the school to get data for

Returns

reference to the school with the given name, or None if no such school exists

Return type

FSDSchool

property name

Name of the district

Type

str

property school_names

list of school names associated with this district

Type

list (str)

property schools

1 or more schools associated with this district

Type

list (FSDSchool)