mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
2a8708eeb3
commit
a75db41a22
@ -1,3 +1,4 @@
|
|||||||
|
import re
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
class AdvancedUserRecipe1330393641(BasicNewsRecipe):
|
class AdvancedUserRecipe1330393641(BasicNewsRecipe):
|
||||||
@ -7,6 +8,15 @@ class AdvancedUserRecipe1330393641(BasicNewsRecipe):
|
|||||||
oldest_article = 30
|
oldest_article = 30
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
auto_cleanup = True
|
auto_cleanup = True
|
||||||
|
|
||||||
|
def get_cover_url(self):
|
||||||
|
cover_url = None
|
||||||
|
soup = self.index_to_soup('http://www.jaapa.com')
|
||||||
|
cover_item = soup.find('img', src=re.compile(r'\w*?cover\w{1,22}\.jpg'))
|
||||||
|
if cover_item:
|
||||||
|
cover_url = cover_item['src']
|
||||||
|
return cover_url
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
(u'CME Articles',
|
(u'CME Articles',
|
||||||
u'http://feeds.feedburner.com/jaapacmearticles'),
|
u'http://feeds.feedburner.com/jaapacmearticles'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user