|
|
#1 |
|
Zealot
![]() ![]() Posts: 119
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')]
|
|
|
|
|
|
#2 |
|
Enthusiast
![]() 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 |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 16
Karma: 2926
Join Date: Dec 2010
Device: Kindle Keyboard, Voyage, Tolino Vision HD3, PBTouch HD3
|
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:
|
|
|
|
![]() |
|
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 |