def get_pagecount (self): handler = urlopen(self.page_counter.construct_url(1)) pagination = parser(handler.read()).cssselect('#content .pagination a') handler.close() return int(pagination[-2].text)
def get_pagecount(self): handler = urlopen(self.page_counter.construct_url(1)) pagination = parser( handler.read()).cssselect('section.paginator li.list-item a') handler.close() return int(pagination[-1].text)
def get_pagecount (self): handler = urlopen(self.page_counter.construct_url(1)) pagination = parser(handler.read()).cssselect('#ctl00_CenterPlaceHolder_ucPager_LastPageLink')[0] handler.close() return int(pagination.text)
def get_pagecount(self): handler = urlopen(self.page_counter.construct_url(1)) pagination = parser(handler.read()).cssselect('#content .pagination a') handler.close() return int(pagination[-2].text)
def get_pagecount (self): handler = urlopen(self.page_counter.construct_url(1)) pagination = parser(handler.read()).cssselect('section.paginator li.list-item a') handler.close() return int(pagination[-1].text)
def get_pagecount(self): handler = urlopen(self.page_counter.construct_url(1)) pagination = parser(handler.read()).cssselect( '#ctl00_CenterPlaceHolder_ucPager_LastPageLink')[0] handler.close() return int(pagination.text)