def _scrape_table(self): resp = download(self.url) html = parsers.html(resp.content, base_url=resp.url) return html.cssselect('#main .film_table tr')
def _scrape_entries(self): """Downloads and scrapes HTML elements, each with film header line.""" resp = download(self.url) html = parsers.html(resp.content, base_url=resp.url) return (el for el in html.cssselect('.contentpaneopen strong') if self._is_entry(el))
def _scrape_rows(self): resp = download(self.url) html = parsers.html(resp.content, base_url=resp.url) return html.cssselect('.content table tr')
def _scrape_events(self): resp = download(self.url) cal = parsers.ical(resp.content) for event in cal.walk(): if event.name == 'VEVENT': yield event