mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
IGN:...
This commit is contained in:
parent
f79793ac1d
commit
5247233b4b
28
src/calibre/web/feeds/recipes/recipe_news_times.py
Normal file
28
src/calibre/web/feeds/recipes/recipe_news_times.py
Normal file
@ -0,0 +1,28 @@
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class NewsTimes(BasicNewsRecipe):
|
||||
title = 'Newstimes'
|
||||
__author__ = 'Darko Miletic'
|
||||
description = 'news from USA'
|
||||
language = _('English')
|
||||
oldest_article = 1
|
||||
max_articles_per_feed = 100
|
||||
no_stylesheets = True
|
||||
use_embedded_content = False
|
||||
encoding = 'utf-8'
|
||||
remove_javascript = True
|
||||
|
||||
keep_only_tags = [
|
||||
dict(name='h1', attrs={'id':'articleTitle'})
|
||||
,dict(name='div', attrs={'id':['articleByline','articleDate','articleBody']})
|
||||
]
|
||||
remove_tags = [
|
||||
dict(name=['object','link'])
|
||||
,dict(name='div', attrs={'class':'articleEmbeddedAdBox'})
|
||||
]
|
||||
|
||||
|
||||
feeds = [
|
||||
(u'Latest news' , u'http://feeds.newstimes.com/mngi/rss/CustomRssServlet/3/201071.xml' )
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user