Пример #1
0
 def _scrape_table(self):
     resp = download(self.url)
     html = parsers.html(resp.content, base_url=resp.url)
     return html.cssselect('#main .film_table tr')
Пример #2
0
 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))
Пример #3
0
 def _scrape_rows(self):
     resp = download(self.url)
     html = parsers.html(resp.content, base_url=resp.url)
     return html.cssselect('.content table tr')
Пример #4
0
 def _scrape_events(self):
     resp = download(self.url)
     cal = parsers.ical(resp.content)
     for event in cal.walk():
         if event.name == 'VEVENT':
             yield event
 def _scrape_rows(self):
     resp = download(self.url)
     html = parsers.html(resp.content, base_url=resp.url)
     return html.cssselect('.content table tr')
Пример #6
0
 def _scrape_events(self):
     resp = download(self.url)
     cal = parsers.ical(resp.content)
     for event in cal.walk():
         if event.name == 'VEVENT':
             yield event