Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 09-14-2013, 12:28 AM   #1
sacksam
Junior Member
sacksam began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2009
Device: N810
phys.org Recipe

I created a recipe for phys.org. I get the text but no images. I included the recipe. Is there something else I need to do to get the images?
Thanks

from calibre.web.feeds.news import BasicNewsRecipe

class Physorg(BasicNewsRecipe):
title = u'Physorg'
language = 'en'
description = u'Phys.org internet news portal provides the latest news on science including: Physics, Nanotechnology, Life Sciences, Space Science, Earth Science, Environment, Health and Medicine.'
__author__ = 'seird'
publisher = u'phys.org'
oldest_article = 7
max_articles_per_feed = 40
auto_cleanup = True
no_stylesheets = True
use_embedded_content = False
remove_empty_feeds = True


feeds = [(u'Physorg ', u'http://phys.org/rss-feed/')]
sacksam is offline   Reply With Quote
Old 09-14-2013, 12:32 AM   #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: 26,461
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You will likely have to remove auto_cleanup = True and manually clean up the using keep_only_tags and remove_tags. Most likely the auto cleanup routine is removing the images.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
longform.org (My first recipe, please critique) Barty Recipes 5 01-10-2014 03:31 PM
Recipe for rebelion.org cram1010 Recipes 0 05-04-2012 12:03 PM
AraInfo.org recipe meskio Recipes 0 04-28-2012 09:31 PM
Recipe for talkorigins.org? AGB Recipes 0 05-23-2011 01:38 PM
Recipe Suggestion: OnSuper8.Org KindleKid Calibre 0 07-28-2009 01:31 PM


All times are GMT -4. The time now is 12:40 AM.


MobileRead.com is a privately owned, operated and funded community.