def _init_show_list(self, url): response = self._request.get(url.base + url.search) result = core.beautifulSoup(response).find_all('option') clean_show_list = [] for show in result: clean_show_title = core.source_utils.clean_title(show.text.lower()) show_info = Show(title=clean_show_title, id=show['value']) clean_show_list.append(show_info) return clean_show_list
def _soup_filter(self, response): return core.beautifulSoup(response).find_all('item')
def _soup_filter(self, response): return core.beautifulSoup(response) \ .find_all('div', { 'class': 'inner_container' })[1] \ .find_all('div', { 'class': 'grey_bar3' })