~ubuntu-branches/debian/sid/calibre/sid

« back to all changes in this revision

Viewing changes to recipes/gosc_niedzielny.recipe

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-02-27 07:48:06 UTC
  • mto: This revision was merged to the branch mainline in revision 74.
  • Revision ID: package-import@ubuntu.com-20140227074806-64wdebb3ptosxhhx
Tags: upstream-1.25.0+dfsg
Import upstream version 1.25.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
        __author__ = 'Piotr Kontek, Tomasz Długosz'
15
15
        title = u'Gość Niedzielny'
16
 
        description = 'Ogólnopolski tygodnik katolicki - fragmenty artykułów z poprzedniego numeru'
 
16
        description = 'Ogólnopolski tygodnik katolicki - fragmenty artykułów z aktualnego numeru'
17
17
        encoding = 'utf-8'
18
18
        no_stylesheets = True
19
19
        language = 'pl'
24
24
            doc = html.fromstring(raw)
25
25
            page = doc.xpath('//div[@class="c"]//div[@class="search-result"]/div[1]/div[2]/h1//a/@href')
26
26
 
27
 
            return page[1]
 
27
            return page[0]
28
28
 
29
29
        def parse_index(self):
30
30
                soup = self.index_to_soup('http://gosc.pl' + self.find_last_issue())