This commit is contained in:
Kovid Goyal 2018-02-14 02:26:03 +05:30
parent f8a298cef9
commit f207feb95f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 14 additions and 9 deletions

View File

@ -11,7 +11,6 @@
## ##
__license__ = 'GPL v3' __license__ = 'GPL v3'
__author__ = '2013, Carlos Alves <carlosalves90@gmail.com>' __author__ = '2013, Carlos Alves <carlosalves90@gmail.com>'
''' '''
diarioelpueblo.com.uy diarioelpueblo.com.uy
''' '''
@ -37,11 +36,18 @@ class General(BasicNewsRecipe):
keep_only_tags = [dict(name='div', attrs={'class': 'post-alt blog'})] keep_only_tags = [dict(name='div', attrs={'class': 'post-alt blog'})]
remove_tags = [ remove_tags = [
dict(
name='div',
attrs={
'class': ['hr', 'titlebar', 'volver-arriba-right', 'navigation']
}
),
dict(name='div', attrs={ dict(name='div', attrs={
'class': ['hr', 'titlebar', 'volver-arriba-right', 'navigation']}), 'id': 'comment suckerfish crp_related'.split(),
dict(name='div', attrs={'id': 'comment', }),
'id': 'suckerfish', 'id': 'crp_related'}), dict(name='h3', attrs={
dict(name='h3', attrs={'class': ['post_date']}), 'class': ['post_date']
}),
dict(name=['object', 'link']) dict(name=['object', 'link'])
] ]
@ -54,9 +60,7 @@ class General(BasicNewsRecipe):
img{margin-bottom: 0.4em; display:block;} img{margin-bottom: 0.4em; display:block;}
''' '''
feeds = [ feeds = [(u'Articulos', u'http://www.diarioelpueblo.com.uy/feed')]
(u'Articulos', u'http://www.diarioelpueblo.com.uy/feed')
]
def get_cover_url(self): def get_cover_url(self):
return None return None

View File

@ -96,6 +96,7 @@ class TrimImage(QDialog):
if self.canvas.trim_image(): if self.canvas.trim_image():
self.accept() self.accept()
if __name__ == '__main__': if __name__ == '__main__':
app = QApplication([]) app = QApplication([])
fname = sys.argv[-1] fname = sys.argv[-1]