From 2f15bc9e61dadb8c8076b4b8a9993983ddf9e880 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 8 Jul 2010 09:43:04 -0600 Subject: [PATCH] evz.ro by DM --- resources/images/dialog_question.svg | 269 +++++++++++++++++++++++++++ resources/images/news/evz.ro.png | Bin 0 -> 836 bytes resources/recipes/evz.ro.recipe | 52 ++++++ 3 files changed, 321 insertions(+) create mode 100644 resources/images/dialog_question.svg create mode 100644 resources/images/news/evz.ro.png create mode 100644 resources/recipes/evz.ro.recipe diff --git a/resources/images/dialog_question.svg b/resources/images/dialog_question.svg new file mode 100644 index 0000000000..be41385b7d --- /dev/null +++ b/resources/images/dialog_question.svg @@ -0,0 +1,269 @@ + + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/images/news/evz.ro.png b/resources/images/news/evz.ro.png new file mode 100644 index 0000000000000000000000000000000000000000..c0549185bc075fb6bc64ec0645ea3371dad4f95a GIT binary patch literal 836 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zK-vS0-A-oPfdtD69Mgd`SU*F|v9*U87?^TBT^vI!PWMiZ^$0GMI9C6EZsEC-cRq9T z{Bi}=&p5UAtl&B677-#)o0wQ4D%c|KdcjxxZfnS*7W2EJj^#}PtWtFXBHtGNbew6T zW02c5%i6lGr?+0*xwvn|^G~&v^7p>i&U4?u803}7_r>V;#c4s`ugp8N^)rJL$Hskm z{*rIrC;q76ow)9TTU?#V)`jf6O7gpwuHKZ^>#>HfeZGm|y&GOhR%{KALJOzmD&o1-S5OG_Go1}@*u15ub^H1s@)|e!gaW&PVzULDew>SWbbD{woTaHL@AQ7CH!ilAuWSBZ zA?)v*Gmhe$=e|9;b*;w7j43xlEZ(YYby>dUDdW0R59GDE6nC}Q!>*kku?|sRRfU`M8o54o8JL7FnGH9xvX.*?', re.DOTALL|re.IGNORECASE),lambda match: '<head><title>') + ,(re.compile(r'.*?', re.DOTALL|re.IGNORECASE),lambda match: '') + ] + + remove_tags = [ + dict(name=['form','embed','iframe','object','base','link','script','noscript']) + ,dict(attrs={'class':['section','statsInfo','email il']}) + ,dict(attrs={'id' :'gallery'}) + ] + + remove_tags_after = dict(attrs={'class':'section'}) + keep_only_tags = [dict(attrs={'class':'single'})] + remove_attributes = ['height','width'] + + feeds = [(u'Articles', u'http://www.evz.ro/rss.xml')] + + def preprocess_html(self, soup): + for item in soup.findAll(style=True): + del item['style'] + return soup