mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
...
This commit is contained in:
parent
2c8218bc36
commit
efb222c534
@ -7,22 +7,29 @@ class DallasNews(BasicNewsRecipe):
|
|||||||
max_articles_per_feed = 25
|
max_articles_per_feed = 25
|
||||||
|
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
remove_tags_before = dict(name='h2', attrs={'class':'vitstoryheadline'})
|
use_embedded_content = False
|
||||||
remove_tags_after = dict(name='div', attrs={'style':'width: 100%; clear: right'})
|
remove_tags_before = dict(name='h1')
|
||||||
remove_tags_after = dict(name='div', attrs={'id':'article_tools_bottom'})
|
keep_only_tags = {'class':lambda x: x and 'article' in x}
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name='iframe'),
|
{'class':['DMNSocialTools', 'article ', 'article first ', 'article premium']},
|
||||||
dict(name='div', attrs={'class':'biblockmore'}),
|
|
||||||
dict(name='div', attrs={'style':'width: 100%; clear: right'}),
|
|
||||||
dict(name='div', attrs={'id':'article_tools_bottom'}),
|
|
||||||
#dict(name='ul', attrs={'class':'articleTools'}),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
('Latest News', 'http://www.dallasnews.com/newskiosk/rss/dallasnewslatestnews.xml'),
|
('Local News',
|
||||||
('Local News', 'http://www.dallasnews.com/newskiosk/rss/dallasnewslocalnews.xml'),
|
'http://www.dallasnews.com/news/politics/local-politics/?rss'),
|
||||||
('Nation and World', 'http://www.dallasnews.com/newskiosk/rss/dallasnewsnationworld.xml'),
|
('National Politics',
|
||||||
('Politics', 'http://www.dallasnews.com/newskiosk/rss/dallasnewsnationalpolitics.xml'),
|
'http://www.dallasnews.com/news/politics/national-politic/?rss'),
|
||||||
('Science', 'http://www.dallasnews.com/newskiosk/rss/dallasnewsscience.xml'),
|
('State Politics',
|
||||||
|
'http://www.dallasnews.com/news/politics/state-politics/?rss'),
|
||||||
|
('Religion',
|
||||||
|
'http://www.dallasnews.com/news/religion/?rss'),
|
||||||
|
('Crime',
|
||||||
|
'http://www.dallasnews.com/news/crime/headlines/?rss'),
|
||||||
|
('Celebrity News',
|
||||||
|
'http://www.dallasnews.com/entertainment/celebrity-news/?rss&listname=TopStories'),
|
||||||
|
('Nation',
|
||||||
|
'http://www.dallasnews.com/news/nation-world/nation/?rss'),
|
||||||
|
('World',
|
||||||
|
'http://www.dallasnews.com/news/nation-world/world/?rss'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user