Beispiel #1
0
 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")
         )
Beispiel #2
0
 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")
         )
Beispiel #3
0
 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)
         )
Beispiel #4
0
 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)
         )
Beispiel #5
0
 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)
         )