def __compile_selectors(self): for cat, sel in leaders_sel.SeasonStat.selections.items(): self.__selections.setdefault( cat, selectors.Selections(self.soup, sel) ) for cat, sel in leaders_sel.SeasonStat.dropdowns.items(): self.__dropdowns.setdefault( cat, selectors.Dropdowns(self.soup, sel, "> ul > li") )
def __compile_selectors(self): for cat, sel in leaders_sel.GameSpan.selections.items(): self.__selections.setdefault( cat, selectors.Selections(self.soup, sel) ) for cat, sel in leaders_sel.GameSpan.dropdowns.items(): self.__dropdowns.setdefault( cat, selectors.Dropdowns(self.soup, sel, "> div > a") )
def __compile_selectors(self): for cat, sel in leaders_sel.International.selections.items(): self.__selections.setdefault( cat, selectors.Selections(self.soup, sel) ) for cat, sel in leaders_sel.International.dropdowns.items(): self.__dropdowns.setdefault( cat, selectors.Dropdowns(self.soup, sel, "> div > a") ) for cat, sel in leaders_sel.International.switches.items(): self.__switches.setdefault( cat, selectors.Switches(self.soup, sel) )
def __compile_selectors(self): for cat, sel in leaders_sel.MajorLeague.selections.items(): self.__selections.setdefault( cat, selectors.Selections(self.soup, sel, "> div > ul > li") ) for cat, sel in leaders_sel.MajorLeague.dropdowns.items(): options = leaders_sel.MajorLeague.dropdown_options[cat] self.__dropdowns.setdefault( cat, selectors.Dropdowns(self.soup, sel, "> div > ul > li", options) ) for cat, sel in leaders_sel.MajorLeague.switches.items(): self.__switches.setdefault( cat, selectors.Switches(self.soup, sel) )
def __compile_selectors(self): for cat, sel in leaders_sel.Splits.selections.items(): self.__selections.setdefault( cat, selectors.Selections(self.soup, sel) ) for cat, sel in leaders_sel.Splits.dropdowns.items(): self.__dropdowns.setdefault( cat, selectors.Dropdowns(self.soup, sel, "> ul > li") ) for cat, sel in leaders_sel.Splits.splits.items(): self.__splits.setdefault( cat, selectors.Dropdowns(self.soup, sel, "> ul > li") ) for cat, sel in leaders_sel.Splits.switches.items(): self.__switches.setdefault( cat, selectors.Switches(self.soup, sel) )