View Single Post
Old 02-02-2014, 09:39 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,455
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Code:
def get_cover_url(self):
     import time
     return 'http://s.kathimerini.gr/resources/issue-cover/%s.jpg' %time.strftime('%d-%d-%Y')
You can concatenate rss feeds by re-implementing the parse_feeds() function in your recipe.

Implement preprocess_raw() in your recipe and replace clearing-featured-img by 'dont-remove-me' if the page is a comic page. Then remove tags wont affect it.
kovidgoyal is online now   Reply With Quote