mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
1ab15df9b6
commit
d06dc22ac1
@ -16,11 +16,18 @@ class hu168ora(BasicNewsRecipe):
|
|||||||
encoding = 'utf8'
|
encoding = 'utf8'
|
||||||
publisher = u'Telegráf Kiadó'
|
publisher = u'Telegráf Kiadó'
|
||||||
category = u'news, hírek, 168'
|
category = u'news, hírek, 168'
|
||||||
extra_css = 'body{ font-family: Verdana,Helvetica,Arial,sans-serif } .lead{font-weight: bold} h2{text-align: center; text-transform: uppercase} '
|
extra_css = 'body{ font-family: Verdana,Helvetica,Arial,sans-serif }'
|
||||||
preprocess_regexps = [(re.compile(r'<!--.*?-->', re.DOTALL), lambda m: '')]
|
preprocess_regexps = [(re.compile(r'<!--.*?-->', re.DOTALL), lambda m: '')]
|
||||||
remove_tags_before = dict(id='cikk_fejlec')
|
keep_only_tags = [
|
||||||
remove_tags_after = dict(id='szoveg')
|
dict(id='cikk_fejlec')
|
||||||
remove_tags = [dict(id='box_toolbar')]
|
,dict(id='cikk_torzs')
|
||||||
|
]
|
||||||
|
# remove_tags_before = dict(id='cikk_fejlec')
|
||||||
|
# remove_tags_after = dict(id='szoveg')
|
||||||
|
remove_tags = [
|
||||||
|
dict(id='box_toolbar')
|
||||||
|
,dict(id='text')
|
||||||
|
]
|
||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
remove_empty_feeds = True
|
remove_empty_feeds = True
|
||||||
|
|
||||||
@ -36,10 +43,9 @@ class hu168ora(BasicNewsRecipe):
|
|||||||
,(u'Sport', u'http://www.168ora.hu/static/rss/cikkek_sport.xml')
|
,(u'Sport', u'http://www.168ora.hu/static/rss/cikkek_sport.xml')
|
||||||
,(u'Vélemény', u'http://www.168ora.hu/static/rss/cikkek_velemeny.xml')
|
,(u'Vélemény', u'http://www.168ora.hu/static/rss/cikkek_velemeny.xml')
|
||||||
,(u'Dolce Vita', u'http://www.168ora.hu/static/rss/cikkek_dolcevita.xml')
|
,(u'Dolce Vita', u'http://www.168ora.hu/static/rss/cikkek_dolcevita.xml')
|
||||||
,(u'Rádió', u'http://www.168ora.hu/static/rss/radio.xml')
|
# ,(u'Rádió', u'http://www.168ora.hu/static/rss/radio.xml')
|
||||||
]
|
]
|
||||||
|
|
||||||
def print_version(self, url):
|
def print_version(self, url):
|
||||||
url += '?print=1'
|
url += '?print=1'
|
||||||
return url
|
return url
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user