From 5392f2e765c96497e3a5d949b8118475080b453e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 18 Apr 2012 09:44:36 +0530 Subject: [PATCH] Various new Polish recipes by fenuks --- recipes/fotoblogia_pl.recipe | 16 ++++++++++++++++ recipes/historia_news.recipe | 20 ++++++++++++++++++++ recipes/icons/fotoblogia_pl.png | Bin 0 -> 379 bytes recipes/icons/historia_news.png | Bin 0 -> 833 bytes recipes/icons/swiat_obrazu.png | Bin 0 -> 1006 bytes recipes/swiat_obrazu.recipe | 25 +++++++++++++++++++++++++ 6 files changed, 61 insertions(+) create mode 100644 recipes/fotoblogia_pl.recipe create mode 100644 recipes/historia_news.recipe create mode 100644 recipes/icons/fotoblogia_pl.png create mode 100644 recipes/icons/historia_news.png create mode 100644 recipes/icons/swiat_obrazu.png create mode 100644 recipes/swiat_obrazu.recipe diff --git a/recipes/fotoblogia_pl.recipe b/recipes/fotoblogia_pl.recipe new file mode 100644 index 0000000000..99df46419a --- /dev/null +++ b/recipes/fotoblogia_pl.recipe @@ -0,0 +1,16 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class Fotoblogia_pl(BasicNewsRecipe): + title = u'Fotoblogia.pl' + __author__ = 'fenuks' + category = 'photography' + language = 'pl' + masthead_url = 'http://img.interia.pl/komputery/nimg/u/0/fotoblogia21.jpg' + cover_url= 'http://fotoblogia.pl/images/2009/03/fotoblogia2.jpg' + oldest_article = 7 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + keep_only_tags=[dict(name='div', attrs={'class':'post-view post-standard'})] + remove_tags=[dict(attrs={'class':['external fotoblogia', 'categories', 'tags']})] + feeds = [(u'Wszystko', u'http://fotoblogia.pl/feed/rss2')] diff --git a/recipes/historia_news.recipe b/recipes/historia_news.recipe new file mode 100644 index 0000000000..4eca8ade91 --- /dev/null +++ b/recipes/historia_news.recipe @@ -0,0 +1,20 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class historia_news(BasicNewsRecipe): + title = u'historia-news' + __author__ = 'fenuks' + description = u'Historia-news to portal dla ludzi kochających historię. Najnowsze newsy z historii bliższej i dalszej, archeologii, paleontologii oraz ciekawostki i podcasty z historii kultury, sportu, motoryzacji i inne.' + masthead_url = 'http://historia-news.pl/templates/hajak4/images/header.jpg' + cover_url= 'http://www.historia-news.pl/templates/hajak4/images/header.jpg' + category = 'history' + language = 'pl' + oldest_article = 7 + max_articles_per_feed = 100 + no_stylesheets = True + remove_empty_feeds = True + remove_tags=[dict(name='form'), dict(name='img', attrs={'alt':'Print'}), dict(attrs={'class':['commbutt', 'cpr']}), dict(id=['plusone', 'facebook'])] + feeds = [(u'Wiadomo\u015bci', u'http://historia-news.pl/wiadomoci.feed?type=rss'), (u'Artyku\u0142y', u'http://historia-news.pl/artykuy.feed?type=rss')] + + + def print_version(self, url): + return url + '?tmpl=component&print=1&layout=default&page=' diff --git a/recipes/icons/fotoblogia_pl.png b/recipes/icons/fotoblogia_pl.png new file mode 100644 index 0000000000000000000000000000000000000000..0204a04e62e1604ac2467340737eaa8a9008b88b GIT binary patch literal 379 zcmeAS@N?(olHy`uVBq!ia0vp^0wBx+BpCi@`0fExEa{HEjtmSN`?>!lvI6;x#X;^) z4C~IxyaaL-l0AZa85pY67#JE_7#My5g&JNkFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR z+uenM-^$2tF_6bu;1O92q&>jc?PRtckWu34;uyklJ^2SeE6@M`|AiA0*o^mWSZX@Bi2!!6q;Hy_6q;( zfzD=7Epd$~Nl7e8wMs5Z1yT$~28Kqu1}3_O79j?fR>nqFCWhJurd9?9Zd2PhQ8eV{ mr(~v8A~cwX7+PAHnp&9}K{Q-uD?R|!z~JfX=d#Wzp$P!`#d)^? literal 0 HcmV?d00001 diff --git a/recipes/icons/historia_news.png b/recipes/icons/historia_news.png new file mode 100644 index 0000000000000000000000000000000000000000..79b1b52859b4ef60c68cba22ed161ddfd50fcdaa GIT binary patch literal 833 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJOS+@4BLl<6e(pbstUx|vage(c z!@6@aFM%9|WRD45bDP46hOx7_4S6Fo+k-*%fF5)aMf5 z6XFU~uyvwanx9^hzwWk)uI-t|>pQGf6y+zESxzps+|X&=mSVcR*>ZKK>#}BxWla`q zy4;sHTTLr7Th{7!_~1cbFRvvnE;Gu^PPN$`U)OzL$NJk#y&kOdJ-m0rxn2G5Pli3( zG2|m-~{Cro?xjvVh%lxk|_B*hD-??Qe z57znt72lZeer=B1g_S9rHmpB%@BmQc{%YSt2M%o7xM9b(ZL3$Ue0?zN(Z+zgE4;7I zb-z5#yU@!RbJg)7{Ivj_qB4VMFEdIWapIx9^-?d;9p56UR@? zoIds7fdfEe4^GRux4-E0sZ&Rf96odU^r1tC_D)ECv?uP^fi0IVUbuAe;(^`Uc6P_T zITZGIOVH_6h5P0gpXqZx*<$jb1B*-tAp;1Jnk*|PBMy7zT zb*7x$%vQUQ-7Fz?0*iCh)N&RJY~0x0T~N^7y?_7Hr{~WX6-{qG{QLLeW`ntMa&ryZ zrRHWR1_F)ZEbxdd2GSm2>~=ES4#-&R>Eak7aXC2w2vU+5nA5~K&K@{*>>SV=C(j+_ z6-{{X@M&_w195?tkF71PE|L;1u1Ag}DhW*rx@5Ge=#zn6bJO1D#gjL8E5$gRyn6QT z;mh8VdJ7)Cef;{l`~oiV0B#;GK2F}?cJ7Q8cNaI;;~9rowZJ&dSNc!N$xI_wO_{9=z1mc<>gRRzf!W!nZk%EDVv`CEP9u z^yvZ}u3F+6QIe8al4_M)lnSI6j0_BobPY^&4J|?pEUk=J4BV!+aiVC* n%}>cpt3+rp4>7c~GBvj{F@k82j$E7!)WG2B>gTe~DWM4fea&c@ literal 0 HcmV?d00001 diff --git a/recipes/icons/swiat_obrazu.png b/recipes/icons/swiat_obrazu.png new file mode 100644 index 0000000000000000000000000000000000000000..a61662a864fe883a9f1768284d57d610ad54241c GIT binary patch literal 1006 zcmY+CYfO`O6vqF+Xhh?jXxwBSVTlrrVp*+xNZbZl-ZE4+lDj*Ys7T@0DV z46?ao8G;~}j%z^+)Pl-}ARq!QwLqn%EmA79TpYd83vc^!_WEhtlbrLM=On)mCppDw zZ06R@L7NdmTa#G{>7>8$sy6wNeP7tN)17B3i$l{JF$s+tFVj}DcJgiT=mKqIR)J zEHN!Dbv^iVFM~yE_GE1`2l|XboS|K!@?jX z#Z5+^&p%)$pr8ETVUZyqpOsNS`m33Rl1B34$ib4F5YKsQlE>v@SY|d4GwHb$pCk&# z#tvN!#y*R?jQPaBi(wQjbNea!msmjZ{@mReSafaCU%q$$_)T2WQqg^_@kUhIapu|7 z**?XvdQd6T^#|_jJD+`lmzQJKFV4R-EK_#oyDV8wo70-@v~S~5b_X@fsXM8GK|?ZX z@b-W}E;dzCa=rK$9(MhkR1~l$bZ=9AV?z$@B=Rf3b`^Zhz8D;FE~K}%eUt3qq5b|_ zXl12mIcK6dD&^F(EB^1l9aLHI$;Vnv3_s?P@24}zdVU~wgt9AQ{m)Ydl(~~RvaIUJ z@8r6|<8eDsZD>S|C?zF%@L%8vhaSzKA7w;_AD~5%z}4UPP)PtKC$bYnC%8ZU1M|i( AI{*Lx literal 0 HcmV?d00001 diff --git a/recipes/swiat_obrazu.recipe b/recipes/swiat_obrazu.recipe new file mode 100644 index 0000000000..68740fa4dd --- /dev/null +++ b/recipes/swiat_obrazu.recipe @@ -0,0 +1,25 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class Swiat_Obrazu(BasicNewsRecipe): + title = u'Swiat Obrazu' + __author__ = 'fenuks' + description = u'Internetowy Dziennik o Fotografii i Wideo www.SwiatObrazu.pl to źródło informacji o technice fotografii i wideo, o sprzęcie najbardziej znanych i uznanych firm: Canon, Nikon, Sony, Hasselblad i wielu innych. Znajdziecie tu programy do obróbki zdjęć, forum foto i forum wideo i galerie zdjęć. Codziennie najświeższe informacje: aktualności, testy, poradniki, wywiady, felietony. Swiatobrazu.pl stale organizuje konkursy oraz warsztaty fotograficzne i wideo.' + category = 'photography' + masthead_url = 'http://www.swiatobrazu.pl/img/logo.jpg' + cover_url = 'http://www.swiatobrazu.pl/img/logo.jpg' + language = 'pl' + oldest_article = 7 + max_articles_per_feed = 100 + no_stylesheets = True + remove_javascript= True + use_embedded_content = False + feeds = [(u'Wszystko', u'http://www.swiatobrazu.pl/rss')] + + def print_version(self, url): + return url + ',drukuj' + + def image_url_processor(self, baseurl, url): + if 'http://' not in url or 'https://' not in url: + return 'http://www.swiatobrazu.pl' + url[5:] + else: + return url