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 05-21-2011, 09:02 AM   #1
xXxXxXxXxXx
Enthusiast
xXxXxXxXxXx began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Apr 2011
Device: none
recipe for Freundin (DE) (need help)

This recipe does't get multi-pages articles (only first page)
So please help and fix it, (J really need some real examples)

Code:
class AdvancedUserRecipe1305567197(BasicNewsRecipe):
    title          = u'Freundin (DE)'
    __author__  = 'xXxXxXxXxXx'
    oldest_article = 7
    max_articles_per_feed = 1000
    no_stylesheets         = True
    use_embedded_content   = False
    remove_javascript      = True
    
    keep_only_tags = [
                              dict(name='div', attrs={'class':['box']}) ]

    remove_tags = [dict(name='div', attrs={'class':'reviewFooter'}),
                            dict(name='div', attrs={'class':'reviewHead'}),
                            dict(name='div', attrs={'class':'boxFooter'}),
                            dict(name='div', attrs={'class':'relatedBox'}),
                            dict(name='div', attrs={'class':'pager'}),
                            dict(name='div', attrs={'class':'listItem'}),
                            dict(name='div', attrs={'class':'rapidev_form_structure rapidev_form_structure_ element notopborder noleftmargin'}),
                            dict(name='div', attrs={'id':'reviewForm'}),
                            dict(name='ul', attrs={'class':'artikelNav'}),
                              ]
   
    feeds          = [	(u'home', u'http://www.freundin.de/feeds/module/rss/channel/home'),
                                        (u'beauty', u'http://www.freundin.de/feeds/module/rss/channel/beauty'),
                                        (u'liebe', u'http://www.freundin.de/feeds/module/rss/channel/liebe'),
                                        (u'kochen & diät', u'http://www.freundin.de/feeds/module/rss/channel/kochen'),
                                        (u'lifestyle', u'http://www.freundin.de/feeds/module/rss/channel/auto'),
                                        (u'leichter leben', u'http://www.freundin.de/feeds/module/rss/channel/leichterleben'),
                                        (u'mode', u'http://www.freundin.de/feeds/module/rss/channel/mode'),
                                        (u'kultur & stars', u'http://www.freundin.de/feeds/module/rss/channel/kultur'),
                                        (u'gesundheit', u'http://www.freundin.de/feeds/module/rss/channel/wellfit'), 
                                        (u'wohnen & kreativ', u'http://www.freundin.de/feeds/module/rss/channel/kreativ'),
                                        (u'reise', u'http://www.freundin.de/feeds/module/rss/channel/reise'),
                                        (u'horoskop', u'http://www.freundin.de/feeds/module/rss/channel/horoskop'),
		]

Last edited by xXxXxXxXxXx; 05-21-2011 at 09:02 AM. Reason: recipe
xXxXxXxXxXx is offline   Reply With Quote
Old 05-23-2011, 09:37 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by xXxXxXxXxXx View Post
This recipe does't get multi-pages articles (only first page)
So please help and fix it, (J really need some real examples)
There's no multipage code there, so it won't do multipage. Search for that word here. See the Adventuregamer recipe for sample code. There are lots of examples here, too, and many in the builtins.
Starson17 is offline   Reply With Quote
 
Enthusiast
Old 05-24-2011, 01:56 PM   #3
xXxXxXxXxXx
Enthusiast
xXxXxXxXxXx began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Apr 2011
Device: none
OK, J check it out
xXxXxXxXxXx 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
Recipe works when mocked up as Python file, fails when converted to Recipe ode Recipes 7 09-04-2011 04:57 AM
New Recipe UtahJames Recipes 3 04-18-2011 08:02 PM
New Recipe UtahJames Recipes 2 04-18-2011 06:32 PM
Other Non-Fiction Humboldt, Wilhelm von: Briefe an eine Freundin, German, V1. 23-Apr-2010 weatherwax ePub Books 0 04-23-2010 03:17 PM
Recipe Help Please estral Calibre 1 06-11-2009 02:35 PM


All times are GMT -4. The time now is 05:07 PM.


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