View Single Post
Old 05-10-2011, 09:18 AM   #1
schuster
Zealot
schuster doesn't litterschuster doesn't litter
 
Posts: 119
Karma: 100
Join Date: Jan 2011
Location: Germany / NRW /Köln
Device: prs-650 / prs-350 /kindle 3
recipe for Welt der Physik - German

her a little recipe for a german physik's news source

Code:
class AdvancedUserRecipe1303841067(BasicNewsRecipe):

    title          = u'Welt der Physik'
    __author__  = 'schuster'
    remove_tags_befor = [dict(name='div', attrs={'class':'inhalt_bild_text_printonly'})]
    remove_tags_after = [dict(name='span', attrs={'class':'clearinhalt_bild'})]
    remove_tags = [dict(attrs={'class':['invisible', 'searchfld', 'searchbtn', 'topnavi', 'topsearch']}), 
	dict(id=['naservice', 'phservicemenu', '',]), 
	dict(name=['naservice'])]
    oldest_article = 7
    max_articles_per_feed = 100
    no_stylesheets         = True
    use_embedded_content   = False
    language               = 'de'
    remove_javascript      = True


    feeds          = [(u'Nachrichten und Neuigkeiten', u'http://www.weltderphysik.de/rss/alles.xml')]

improvements always desired

greetings schuster
schuster is offline   Reply With Quote