mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Slate
This commit is contained in:
parent
7a2a5a7cdd
commit
4949f9e6d3
@ -72,7 +72,7 @@ class Slate(BasicNewsRecipe):
|
|||||||
from datetime import date
|
from datetime import date
|
||||||
soup = self.index_to_soup(url)
|
soup = self.index_to_soup(url)
|
||||||
ans = []
|
ans = []
|
||||||
dt = date.today().strftime('/%Y/%m')
|
dt = date.today().strftime('/%Y/')
|
||||||
for a in soup.findAll('a', attrs={'href':lambda x: x and x.startswith(url + dt)}):
|
for a in soup.findAll('a', attrs={'href':lambda x: x and x.startswith(url + dt)}):
|
||||||
url = a['href']
|
url = a['href']
|
||||||
head = a.find(attrs={'class':[
|
head = a.find(attrs={'class':[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user