mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
use mobile page pt.1
This commit is contained in:
parent
b59c3778a3
commit
ac176a1e29
@ -20,9 +20,9 @@ class GN(BasicNewsRecipe):
|
|||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
|
|
||||||
def find_last_issue(self):
|
def find_last_issue(self):
|
||||||
raw = self.index_to_soup('http://gosc.pl/wyszukaj/wydania/3.Gosc-Niedzielny/', raw=True)
|
raw = self.index_to_soup('http://m.gosc.pl/wyszukaj/wydania/3.Gosc-Niedzielny/', raw=True)
|
||||||
doc = html.fromstring(raw)
|
doc = html.fromstring(raw)
|
||||||
page = doc.xpath('//div[@class="c"]//div[@class="search-result"]/div[1]/div[2]/h1//a/@href')
|
page = doc.xpath('//div[@class="search-result"]/div[1]/div[1]/a/@href')
|
||||||
|
|
||||||
if time.strftime("%w") in ['3','4']:
|
if time.strftime("%w") in ['3','4']:
|
||||||
return page[5]
|
return page[5]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user