From d424b769f7bb77e1c4a577fc349cc2c8ce6dfc41 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 8 Nov 2010 11:01:28 -0700 Subject: [PATCH] Dnevnik by BlonG --- resources/images/news/dnevnik.png | Bin 0 -> 861 bytes resources/recipes/avto-magazin.recipe | 2 +- resources/recipes/dnevnik.recipe | 63 ++++++++++++++++++++++++++ resources/recipes/mmc_rtv.recipe | 2 +- 4 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 resources/images/news/dnevnik.png create mode 100644 resources/recipes/dnevnik.recipe diff --git a/resources/images/news/dnevnik.png b/resources/images/news/dnevnik.png new file mode 100644 index 0000000000000000000000000000000000000000..a7e3da45951d794869fbc9b8e830b77a01495421 GIT binary patch literal 861 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zK-vS0-A-oPfdtD69Mgd`SU*F|v9*U87?|2TT^vI!PRCC6_6SK7IbQ$#TQ%?bMeq3-zy>!EuLQ%tXUw|C9TM9YJ9on z%0ai?i@z5}-Fcl+TOcNX|GRzveM|Qc+fWAqhF{C~ecte1GT+@w(%)~PLtvSr=|nB5 zQ{Mt-%;axa#Gx>+N{gd!SIpb2hgId=oihs!eC{*EuwO|{eJ7$%xSs@^%f@kyw4IVCi) zl`Dv_88@Gn&o9`&UY6mfiRFUXNxUku+?+?67R=*4w?^N@SnL#IfsWEn)h{M?hxYtl z+PlP*@ug**ieZ4dr^@nQGtH^jd0+hT0{TiPj8v;FW##(8{ukJi}Vnp-8nQktfD zR{P=8#^@<}y$ly3!n|W|YYJ^^m2f){|5D=R5sA%e4HulM-pROMm-p#pEL(f))V@hs z1v(tJdIcX%7d<}XxpM>WfsZl&?AK{=bnpLN7nUO0u*;FNVdlBH_rj_k#|O`kbc|WUnAy)HtbA(s&? zz{nZ6xyt&JrQHhAja53wou2GByX7g+xW#9J>l~TxPpQ%`tiCWTw%I=8#k9!=*3GM) zcLyHvX#SGJk^Wcvn~cMbpvty4AB5_K7SHxC*t3Z9nb3;o4qahJ zKmU6^uWi|J4#hRGQAh5bD0}5qK6(1Q%_}-j#p`s6H~-yTDgjKMswJ)wB`Jv|saDBF zsX&Us$iUD**U(Vcz#_!Zz{=Fb%G6lbz}(8fAm>(OFN%iT{FKbJN@NWN7FGs^R>npU U4Z3f)$pbYoc)I$ztOKSF0EQ1_@&Et; literal 0 HcmV?d00001 diff --git a/resources/recipes/avto-magazin.recipe b/resources/recipes/avto-magazin.recipe index b88c6b6371..6464588acc 100644 --- a/resources/recipes/avto-magazin.recipe +++ b/resources/recipes/avto-magazin.recipe @@ -7,7 +7,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class Dnevnik(BasicNewsRecipe): title = u'Avto Magazin' __author__ = u'BlonG' - description = u"Za avtomobilistične frike, poznavalce in nedeljske šoferje." + description = u'Za avtomobilisti\xc4\x8dne frike, poznavalce in nedeljske \xc5\xa1oferje.' oldest_article = 7 max_articles_per_feed = 20 labguage = 'sl' diff --git a/resources/recipes/dnevnik.recipe b/resources/recipes/dnevnik.recipe new file mode 100644 index 0000000000..75610e2e8f --- /dev/null +++ b/resources/recipes/dnevnik.recipe @@ -0,0 +1,63 @@ +__license__ = 'GPL v3' +__copyright__ = '2010, BlonG' +''' +dnevnik.si +''' +from calibre.web.feeds.news import BasicNewsRecipe +class Dnevnik(BasicNewsRecipe): + title = u'Dnevnik.si' + __author__ = u'BlonG' + description = u'''Dnevnik je \u010dasnik z ve\u010d kot polstoletno zgodovino. + Pod sloganom \xbb\u017divljenje ima besedo\xab na svojih straneh prina\u0161a + bralcem bogastvo informacij, komentarjev in kolumen in raznovrstnost + pogledov, zaznamovanih z odgovornostjo do posameznika in \u0161ir\u0161e + dru\u017ebe.''' + oldest_article = 3 + max_articles_per_feed = 20 + language = 'sl' + no_stylesheets = True + use_embedded_content = False + + cover_url = 'https://sites.google.com/site/javno2010/home/dnevnik_cover.jpg' + + extra_css = ''' + h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;} + h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;} + p{font-family:Arial,Helvetica,sans-serif;font-size:small;} + body{font-family:Helvetica,Arial,sans-serif;font-size:small;} + ''' + + keep_only_tags = [ + dict(name='div', attrs={'id':'_iprom_inStream'}), + dict(name='div', attrs={'class':'entry-content'}), + ] + + remove_tags = [ + dict(name='div', attrs={'class':'fb_article_top'}), + dict(name='div', attrs={'class':'related'}), + dict(name='div', attrs={'class':'fb_article_foot'}), + dict(name='div', attrs={'class':'spreading'}), + dict(name='dl', attrs={'class':'ad'}), + dict(name='p', attrs={'class':'report'}), + dict(name='div', attrs={'class':'hfeed comments'}), + dict(name='dl', attrs={'id':'entryPanel'}), + dict(name='dl', attrs={'class':'infopush ip_wide'}), + dict(name='div', attrs={'class':'sidebar'}), + dict(name='dl', attrs={'class':'bottom'}), + dict(name='div', attrs={'id':'footer'}), + ] + + + feeds = [ + (u'Slovenija', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=13') + ,(u'Svet', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=14') + ,(u'EU', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=116') + ,(u'Poslovni dnevnik', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=5') + ,(u'Kronika', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=15') + ,(u'Kultura', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=17') + ,(u'Zdravje', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=18') + ,(u'Znanost in IT', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=19') + ,(u'(Ne)verjetno', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=20') + ,(u'E-strada', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=21') + ,(u'Svet vozil', u'http://www.dnevnik.si/rss/?articleType=1&articleSection=22') + ] diff --git a/resources/recipes/mmc_rtv.recipe b/resources/recipes/mmc_rtv.recipe index 8b8bd66a06..a0d9adbe29 100644 --- a/resources/recipes/mmc_rtv.recipe +++ b/resources/recipes/mmc_rtv.recipe @@ -43,7 +43,7 @@ class MMCRTV(BasicNewsRecipe): (u'Svet', u'http://www.rtvslo.si/feeds/02.xml'), (u'Evropska unija', u'http://www.rtvslo.si/feeds/16.xml'), (u'Gospodarstvo', u'http://www.rtvslo.si/feeds/04.xml'), - (u'Črna kronika', u'http://www.rtvslo.si/feeds/08.xml'), + (u'\u010crna kronika', u'http://www.rtvslo.si/feeds/08.xml'), (u'Okolje', u'http://www.rtvslo.si/feeds/12.xml'), (u'Znanost in tehnologija', u'http://www.rtvslo.si/feeds/09.xml'), (u'Zabava', u'http://www.rtvslo.si/feeds/06.xml'),