Debian Codegraph @

recipes/gamekult.recipe

raw
1 from __future__ import unicode_literals
2
3 __license__ = 'GPL v3'
4 __copyright__ = '2013, Malah <malah at neuf dot fr>'
5 '''
6 Gamekult.com
7 '''
8
9 __author__ = '2013, Malah <malah at neuf dot fr>'
10 from calibre.web.feeds.news import BasicNewsRecipe
11
12
13 class GamekultCom(BasicNewsRecipe):
14 title = 'Gamekult.com'
15 __author__ = 'Malah'
16 description = 'Toute l`actualité du jeu vidéo PC, consoles, mobiles.'
17 oldest_article = 1.5
18 language = 'fr'
19 max_articles_per_feed = 100
20 remove_empty_feeds = True
21 use_embedded_content = False
22 no_stylesheets = True
23 ignore_duplicate_articles = {'title', 'url'}
24 keep_only_tags = [dict(id=['story-page', 'story-body'])]
25 remove_tags = [
26 dict(name='div', attrs={'class': 'sharebar'}),
27 dict(name='object', attrs={'type': 'application/x-shockwave-flash'}),
28 dict(name='span', attrs={'class': 'share'}),
29 dict(name='div', attrs={'class': 'story-pagination'}),
30 dict(name='div', attrs={'class': 'pagination pagination-centered'}),
31 ]
32
33 masthead_url = 'https://upload.wikimedia.org/wikipedia/fr/9/9c/Logo_-_GAMEKULT.png'
34
35 feeds = [
36 ('Test', 'http://www.gamekult.com/feeds/test.html'),
37 ('Actu', 'http://www.gamekult.com/feeds/actu.html'),
38 ]