mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9f9cafaf1c
commit
9c123ffd63
@ -152,7 +152,9 @@ class WSJ(BasicNewsRecipe):
|
||||
if '-pages_' in k:
|
||||
section = k.split('-pages_')[0].replace('_', ' ')
|
||||
if 'MAGAZINE' in section:
|
||||
continue
|
||||
if not datetime.now().strftime("%d") == 1:
|
||||
continue
|
||||
self.log('Loading Magazine section')
|
||||
self.log(section)
|
||||
|
||||
articles = []
|
||||
@ -172,6 +174,6 @@ class WSJ(BasicNewsRecipe):
|
||||
return BeautifulSoup(raw).prettify()
|
||||
|
||||
def populate_article_metadata(self, article, soup, first):
|
||||
art = soup.find('h1', attrs={'title':True})
|
||||
if art:
|
||||
article.url = art['title']
|
||||
lnk = soup.find('p', attrs={'id':'share-link'})
|
||||
if lnk:
|
||||
article.url = lnk['title']
|
||||
|
Loading…
x
Reference in New Issue
Block a user