mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Recipe for Shacknews by Docbrown00
This commit is contained in:
parent
685dcf2320
commit
e7fa769f63
@ -24,6 +24,7 @@ recipe_modules = ['recipe_' + r for r in (
|
|||||||
'joelonsoftware', 'telepolis', 'common_dreams', 'nin', 'tomshardware_de',
|
'joelonsoftware', 'telepolis', 'common_dreams', 'nin', 'tomshardware_de',
|
||||||
'pagina12', 'infobae', 'ambito', 'elargentino', 'sueddeutsche', 'the_age',
|
'pagina12', 'infobae', 'ambito', 'elargentino', 'sueddeutsche', 'the_age',
|
||||||
'laprensa', 'amspec', 'freakonomics', 'criticadigital', 'elcronista',
|
'laprensa', 'amspec', 'freakonomics', 'criticadigital', 'elcronista',
|
||||||
|
'shacknews',
|
||||||
)]
|
)]
|
||||||
|
|
||||||
import re, imp, inspect, time, os
|
import re, imp, inspect, time, os
|
||||||
|
26
src/calibre/web/feeds/recipes/recipe_shacknews.py
Normal file
26
src/calibre/web/feeds/recipes/recipe_shacknews.py
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class Shacknews(BasicNewsRecipe):
|
||||||
|
__author__ = 'Docbrown00'
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
title = u'Shacknews'
|
||||||
|
oldest_article = 7
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
no_stylesheets = True
|
||||||
|
remove_tags = [dict(name='div', attrs={'class': ['nuggets', 'comments']}),
|
||||||
|
dict(name='p', attrs={'class': 'videoembed'})]
|
||||||
|
keep_only_tags = [dict(name='div', attrs={'class':'story'})]
|
||||||
|
feeds = [
|
||||||
|
(u'Latest News', u'http://feed.shacknews.com/shackfeed.xml'),
|
||||||
|
(u'PC', u'http://feed.shacknews.com/extras/tag_rss.x/PC'),
|
||||||
|
(u'Wii', u'http://feed.shacknews.com/extras/tag_rss.x/Nintendo+Wii'),
|
||||||
|
(u'Xbox 360', u'http://feed.shacknews.com/extras/tag_rss.x/Xbox+360'),
|
||||||
|
(u'Playstation 3', u'http://feed.shacknews.com/extras/tag_rss.x/PlayStation+3'),
|
||||||
|
(u'PSP', u'http://feed.shacknews.com/extras/tag_rss.x/PSP'),
|
||||||
|
(u'Nintendo DS', u'http://feed.shacknews.com/extras/tag_rss.x/Nintendo+DS'),
|
||||||
|
(u'iPhone', u'http://feed.shacknews.com/extras/tag_rss.x/iPhone'),
|
||||||
|
(u'DLC', u'http://feed.shacknews.com/extras/tag_rss.x/DLC'),
|
||||||
|
(u'Valve', u'http://feed.shacknews.com/extras/tag_rss.x/Valve'),
|
||||||
|
(u'Electronic Arts', u'http://feed.shacknews.com/extras/tag_rss.x/Electronic+Arts')
|
||||||
|
]
|
Loading…
x
Reference in New Issue
Block a user