From 76db8efbe7247846b840c15d44abfc007f692a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Tue, 20 Oct 2015 22:50:51 +0200 Subject: [PATCH] informacjeusa.com merged with dziennikzwiazkowy.com --- recipes/dziennikzwiazkowy.recipe | 19 +++++++++++++++++++ recipes/icons/dziennikzwiazkowy.png | Bin 0 -> 773 bytes recipes/icons/informacje_usa.png | Bin 523 -> 0 bytes recipes/informacje_usa.recipe | 16 ---------------- 4 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 recipes/dziennikzwiazkowy.recipe create mode 100644 recipes/icons/dziennikzwiazkowy.png delete mode 100644 recipes/icons/informacje_usa.png delete mode 100644 recipes/informacje_usa.recipe diff --git a/recipes/dziennikzwiazkowy.recipe b/recipes/dziennikzwiazkowy.recipe new file mode 100644 index 0000000000..ebb293d1b0 --- /dev/null +++ b/recipes/dziennikzwiazkowy.recipe @@ -0,0 +1,19 @@ +from calibre.web.feeds.news import BasicNewsRecipe +class Informacje_USA(BasicNewsRecipe): + title = u'Dziennik Związkowy' + oldest_article = 7 + max_articles_per_feed = 100 + __author__ = 'fenuks & Tomasz Długosz' + description = u'Najstarsza polskojęzyczna gazeta codzienna w USA' + category = 'news' + language = 'pl' + cover_url='http://dziennikzwiazkowy.com/wp-content/uploads/2014/08/LogoDZPDN1.png' + no_stylesheets = True + use_embedded_content = False + keep_only_tags=[dict(name='div', attrs={'class':'panel'})] + remove_tags= [dict(name='div', attrs={'class':['social-buttons left','video-carousel','p-title','article-foot','comments-block']}),dict(attrs={'id':['writecomment','blueimp-gallery']})] + feeds = [(u'Informacje', u'http://dziennikzwiazkowy.com/feed/')] + + extra_css = ''' + h1 { font-size:130% } + ''' diff --git a/recipes/icons/dziennikzwiazkowy.png b/recipes/icons/dziennikzwiazkowy.png new file mode 100644 index 0000000000000000000000000000000000000000..bc57c74016d79c3cfe1c44dbf76610b31a0c3509 GIT binary patch literal 773 zcmV+g1N!`lP)Pqa`k{a~5*W@cx;`FV!-?Ot}avkghM!C*At zf53_inyR4uUMr+RK8F{}pHb=c0*V6Uvd}LsaC-a;`FtKyNeL?J>mixVK%oH0G9XEa zudn0F*egi((o(R7288zap`M)~qpEm7_r~`2Yck8^96vfjWkm(76u@3yj)!e+kgYO| zW}6MSj7E&~_MxACI^EeppU;QU(NPgVrGRh7#_&BH#<$f~^t#=6-rtWLF}286;M3zr zjHA`J-NN9*;0aA`x-t z=eoK&aXvpk7jk%bSm-~_&N3yH5&?|Yg>n-?;f*ACJRZbiF>GyZ!QpTqlgS_u2%xO2 z3?8?K>bFwAbNCzJpZRe|j@{i|A^Fc7Jv}{WtaSo39j&O}3~bjt@+xQY^}8 z;*cd`F_xkG>A?ZhvRR?esS1n#h_c^_1k)6SrD$8XH#XR`uY*ZOlL;Su9gyt~s!tZp z(Fz*OL{H7C^Z*O=0A-k|xdj@jrs*(K?YT@Ey3vF`g==hcYl}Sb00000NkvXXu0mjf DWY%o1 literal 0 HcmV?d00001 diff --git a/recipes/icons/informacje_usa.png b/recipes/icons/informacje_usa.png deleted file mode 100644 index ee85bcfb934bcc4a00c87f5ee5acca1d4b83933c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 523 zcmV+m0`&cfP)W9PXWn}=pnWnT2tk%fo8P_Iw*DuW zTlDrNt=%KNOgC>({Q*=*J{O^%5PoIVQ|GG6^+9|a=7!!S5Ol1wHmi;GeNVEYfi5su*c z5)LR^0dw;%MUcEB6dUYTo2e diff --git a/recipes/informacje_usa.recipe b/recipes/informacje_usa.recipe deleted file mode 100644 index 692dcdc07e..0000000000 --- a/recipes/informacje_usa.recipe +++ /dev/null @@ -1,16 +0,0 @@ -from calibre.web.feeds.news import BasicNewsRecipe -class Informacje_USA(BasicNewsRecipe): - title = u'Informacje USA' - oldest_article = 7 - max_articles_per_feed = 100 - __author__ = 'fenuks' - description = u'portal wiadomości amerykańskich' - category = 'news' - language = 'pl' - cover_url='http://www.informacjeusa.com/wp-content/uploads/2013/01/V3BANNER420-90new.jpg' - no_stylesheets = True - use_embedded_content = False - keep_only_tags=[dict(id='post-area')] - remove_tags_after= dict(id='content-area') - remove_tags= [dict(attrs={'class':['breadcrumb']}), dict(id=['social-box', 'social-box-vert'])] - feeds = [(u'Informacje', u'http://www.informacjeusa.com/feed/')]