コード例 #1
0
ファイル: kino_art.py プロジェクト: volmutJ/zitkino.cz
 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
ファイル: kino_lucerna.py プロジェクト: encukou/zitkino.cz
 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
コード例 #5
0
 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