05-20-2011, 04:39 PM | #1 |
Enthusiast
Posts: 37
Karma: 10
Join Date: Apr 2011
Device: none
|
recipe for Deutsche Welle (Deutsch als Fremdsprache
This recipe is for German learners (like me)
provide access to text (simpler than normal) specialty designed to this purpose Code:
class AdvancedUserRecipe1305567197(BasicNewsRecipe): title = u'Deutsche Welle (Deutsch als Fremdsprache)' __author__ = 'xXxXxXxXxXx' oldest_article = 7 max_articles_per_feed = 1000 no_stylesheets = True use_embedded_content = False remove_javascript = True cover_url = 'http://www.dw-world.de/skins/std/channel1/pics/dw_logo1024.gif' keep_only_tags = [ dict(name='div', attrs={'id':['mainContent']}) ] remove_tags = [dict(name='p', attrs={'class':'actionFooter'}), dict(name='div', attrs={'class':'socialBookmarks'}), dict(name='div', attrs={'class':'mediaLink symDW'}), dict(name='div', attrs={'class':'mediaLink symAudioVideo'}), dict(name='div', attrs={'class':'mediaLink symExtern'}), dict(name='div', attrs={'class':'mediaLink symDownload'}), dict(name='div', attrs={'class':'mediaLink symFeedback'}), dict(name='div', attrs={'class':'dossierLinkTitle'}), dict(name='div', attrs={'class':'mediaLink symDW dossierLinks'}), dict(name='div', attrs={'class':'linkLine'}), dict(name='div', attrs={'class':'linkLine'}), dict(name='div', attrs={'class':'mediaLink symSurvey'}) ] feeds = [ (u'Deutsch im Fokus', u'http://rss.dw-world.de/atom/DKfeed_dif_de'), (u'Alltagsdeutsch', u'http://rss.dw-world.de/atom/DKfeed_alltagsdeutsch_de'), (u'Wort der Woche', u'http://rss.dw-world.de/atom/DKfeed_wortderwoche_de'), (u'Sprachbar', u'http://rss.dw-world.de/atom/DKfeed_sprachbar_de'), (u'Stichwort', u'http://rss.dw-world.de/atom/DKfeed_stichwort_de'), (u'Top-Thema mit Vokabeln', u'http://rss.dw-world.de/atom/DKfeed_topthemamitvokabeln_dee'), (u'Langsam gesprochene Nachrichten', u'http://rss.dw-world.de/atom/DKfeed_lgn_de'), ] |
09-20-2012, 08:19 AM | #2 |
Member
Posts: 11
Karma: 10
Join Date: Sep 2012
Location: Hungary
Device: Kindle Keyboard
|
Recipe for Deutsche Welle
English as a foreign language
:-) I have made the English Edition of Deutsche Welle. The recipe: Code:
class AdvancedUserRecipe1348131911(BasicNewsRecipe): title = u'Deutsche Welle - English Edition' oldest_article = 2 language = 'en_DE' masthead_url = 'http://www.dw.de/cssi/dwlogo-print.gif' use_embedded_content = False auto_cleanup = True encoding = 'cp1252' author = 'laca' simultaneous_downloads= 1 max_articles_per_feed = 50 no_stylesheets = True feeds = [(u'Top Stories', u'http://rss.dw.de/rdf/rss-en-top'), (u'Germany', u'http://rss.dw.de/rdf/rss-en-ger'), (u'Europe', u'http://rss.dw.de/rdf/rss-en-eu'), (u'Asia', u'http://rss.dw.de/rdf/rss-en-asia'), (u'World', u'http://rss.dw.de/rdf/rss-en-world'), (u'Business', u'http://rss.dw.de/rdf/rss-en-bus'), (u'Culture & Lifestyle', u'http://rss.dw.de/rdf/rss-en-cul'), (u'Sports', u'http://rss.dw.de/rdf/rss-en-sports'), (u'Visit Germany', u'http://rss.dw.de/rdf/rss-en-visitgermany')] Unfortunately I didn't find more suitable DW logo. Moreover it does not download every pictures. Last edited by laca; 09-20-2012 at 04:37 PM. Reason: To try the forum functions and make my recipe downloadable. |
Advert | |
|
09-30-2014, 04:47 PM | #3 |
Member
Posts: 22
Karma: 10
Join Date: Mar 2014
Device: Kindle paperwhite 2
|
Hi ! I was searching for an up to date version of a receipe for dw.de/deutsche welle/Deutsch XXL. I tried the one above but the news are not inside.
My receipe works, I fetch news once a week, it is very nice, the dictionnary works and I also installed a german english dic on my kindle so it helps if I really don't understand. I share with 2 other friends learning german they like it as well ! I would like to apply a layout to the news (feed "Langsam gesprochene Nachrichten"), because for the moment it is everything in a packet so not confortable to read, we need at least title in bold. I have to search if it is possible, it might be ? Contribution very welcomed, germanophile friends Here is my very simple receipe: class AdvancedUserRecipe1398527969(BasicNewsRecipe): title = u'DW-Deutsch XXL' language = 'ger' oldest_article = 7 max_articles_per_feed = 100 auto_cleanup = True feeds = [(u'Top Thema mit Vokabeln', u'http://rss.dw-world.de/xml/DKpodcast_topthemamitvokabeln_de'), (u'Langsam gesprochene Nachrichten', u'http://rss.dw-world.de/xml/DKpodcast_lgn_de'), (u'Alltagsdeutsch', u'http://rss.dw-world.de/xml/DKpodcast_alltagsdeutsch_de'), (u'Sprachbar', u'http://rss.dw-world.de/xml/DKpodcast_sprachbar_de'), (u'Wort der Woche', u'http://rss.dw-world.de/xml/DKpodcast_wortderwoche_de')] |
Tags |
recipe |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
E-books in Deutsch | mtravellerh | E-Books | 3996 | 04-23-2024 02:14 PM |
Calibre - deutsch | StDo | Sony Reader | 55 | 09-14-2013 04:33 AM |
FBReader deutsch | mtravellerh | PocketBook | 20 | 09-18-2011 08:24 AM |
DaF (Deutsch als Fremdsprache) | Logseman | Lounge | 6 | 12-24-2010 08:46 AM |
Deutsch-Deutsch (Bedeutungs-)wörterbuch | bunique | PocketBook | 16 | 08-17-2010 05:06 PM |