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-16-2011, 04:39 PM   #1
schuster
Zealot
schuster doesn't litterschuster doesn't litter
 
Posts: 116
Karma: 100
Join Date: Jan 2011
Location: Germany / NRW /Köln
Device: prs-650 / prs-350 /kindle 3
recipe for Cosmopolitan.de

Code:
class AdvancedUserRecipe1305567197(BasicNewsRecipe):
    title          = u'Cosmopolitan.de'
    __author__  = 'schuster'
    oldest_article = 7
    max_articles_per_feed = 100
    no_stylesheets         = True
    use_embedded_content   = False
    remove_javascript      = True
    cover_url = 'http://www.cosmopolitan.com/cm/shared/site_images/print_this/cosmopolitan_logo.gif'
    remove_tags_before =  dict(name = 'h1', attrs={'class':'artikel'})
    remove_tags_after = dict(name ='div', attrs={'class':'morePages'})
    extra_css = '''
                    h2{font-family:Arial,Helvetica,sans-serif; font-size: x-small;}
                    h1{ font-family:Arial,Helvetica,sans-serif;  font-size:x-large; font-weight:bold;}
                '''
    remove_tags = [	   dict(id='strong'),
		   dict(title='strong'),
                                           dict(name='span'),
		   dict(name='li', attrs={'class':'large'}),
		   dict(name='ul', attrs={'class':'articleImagesPortrait clearfix'}),
		   dict(name='p', attrs={'class':'external'}),
		   dict(name='a', attrs={'target':'_blank'}),]
    feeds          = [	(u'Komplett', u'http://www.cosmopolitan.de/rss/allgemein.xml'),
		(u'Mode', u'http://www.cosmopolitan.de/rss/mode.xml'),
		(u'Beauty', u'http://www.cosmopolitan.de/rss/beauty.xml'),
		(u'Liebe&Sex', u'http://www.cosmopolitan.de/rss/liebe.xml'),
		(u'Psychologie', u'http://www.cosmopolitan.de/rss/psychologie.xml'),
		(u'Job&Karriere', u'http://www.cosmopolitan.de/rss/job.xml'),
		(u'Lifestyle', u'http://www.cosmopolitan.de/rss/lifestyle.xml'),
		(u'Shopping', u'http://www.cosmopolitan.de/rss/shopping.xml'),
		(u'Bildergalerien', u'http://www.cosmopolitan.de/rss/bildgalerien.xml')]
schuster is offline   Reply With Quote
Advert
Old 05-17-2011, 11:00 AM   #2
xXxXxXxXxXx
Enthusiast
xXxXxXxXxXx began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Apr 2011
Device: none
J've noticed that you are from Germany, because J currently learning German J want to create recipes for German pages but it take a while :
http://www.focus.de
http://www.spiegel.de
http://www.freundin.de
http://www.amica.de/
www.brigitte.de
http://www.petra.de
http://www.jolie.de
http://www.readersdigest.de/
http://www.vorleser.net/
http://www.spektrum.de/
http://www.pm-magazin.de/
http://www.menshealth.de/
http://www.sueddeutsche.de/wissen
http://www.fuersie.de

if you are interested you can do a cuple
xXxXxXxXxXx is offline   Reply With Quote
Old 09-11-2011, 05:41 PM   #3
ibiza666
Junior Member
ibiza666 plays well with othersibiza666 plays well with othersibiza666 plays well with othersibiza666 plays well with othersibiza666 plays well with othersibiza666 plays well with othersibiza666 plays well with othersibiza666 plays well with othersibiza666 plays well with othersibiza666 plays well with othersibiza666 plays well with others
 
Posts: 7
Karma: 2926
Join Date: Dec 2010
Device: (PRS-350)
Hi schuster,

thank you for your recipe !
This raised the women acceptance factor of my Kindle a lot.
But I noticed that I only get the first site of an article and an useless hyperlink to the next pages.

Am I doing something wrong?

Here is one example:

Artikel von Cosmopolitan.

Calibre Viewer:
ibiza666 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 05:57 AM
Recipe for cosmopolitan US xXxXxXxXxXx Recipes 5 05-16-2011 11:23 AM
New Recipe UtahJames Recipes 1 04-11-2011 05:15 PM
Recipe Please gagw Recipes 0 01-24-2011 08:24 AM
new recipe marbs Recipes 0 11-24-2010 05:59 AM


All times are GMT -4. The time now is 07:30 AM.


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