Debian Codegraph @

recipes/jeuxvideo.recipe

raw
1 from __future__ import unicode_literals
2
3 __license__ = 'GPL v3'
4 __copyright__ = '2013, Malah <malah at neuf dot fr>'
5 '''
6 JeuxVideo.com
7 '''
8
9 __author__ = '2013, Malah <malah at neuf dot fr>'
10
11 from calibre.web.feeds.news import BasicNewsRecipe
12
13
14 class JeuxVideoCom(BasicNewsRecipe):
15 title = 'JeuxVideo.com'
16 __author__ = 'Malah'
17 description = 'La Référence des Jeux Vidéo sur PC et Consoles !'
18 oldest_article = 1.5
19 language = 'fr'
20 max_articles_per_feed = 100
21 remove_empty_feeds = True
22 use_embedded_content = False
23 no_stylesheets = True
24 ignore_duplicate_articles = {'title', 'url'}
25 keep_only_tags = [dict(id=['news_detail', 'test_txt', 'test_avis'])]
26 remove_tags = [dict(name='div', attrs={'id': 'player_video_article'}), dict(name='div', attrs={'class': 'liste-fiches'})]
27 masthead_url = 'https://upload.wikimedia.org/wikipedia/commons/3/39/Jeuxvideocom.png'
28 feeds = [
29 ('Section PC', 'http://www.jeuxvideo.com/rss/rss-pc.xml'),
30 ('Section Xbox One', 'http://www.jeuxvideo.com/rss/rss-xo.xml'),
31 ('Section PlayStation 4', 'http://www.jeuxvideo.com/rss/rss-ps4.xml'),
32 ('Section Xbox 360', 'http://www.jeuxvideo.com/rss/rss-360.xml'),
33 ('Section PlayStation 3', 'http://www.jeuxvideo.com/rss/rss-ps3.xml'),
34 ('Section Wii U', 'http://www.jeuxvideo.com/rss/rss-wiiu.xml'),
35 ('Section Wii', 'http://www.jeuxvideo.com/rss/rss-wii.xml'),
36 ('Section Nintendo 3DS', 'http://www.jeuxvideo.com/rss/rss-3ds.xml'),
37 ('Section Nintendo DS', 'http://www.jeuxvideo.com/rss/rss-ds.xml'),
38 ('Section PlayStation Vita', 'http://www.jeuxvideo.com/rss/rss-vita.xml'),
39 ('Section PlayStation Protable', 'http://www.jeuxvideo.com/rss/rss-psp.xml'),
40 ('Section Android', 'http://www.jeuxvideo.com/rss/rss-android.xml'),
41 ('Section Iphone', 'http://www.jeuxvideo.com/rss/rss-iphone.xml'),
42 ('Section Web', 'http://www.jeuxvideo.com/rss/rss-wb.xml'),
43 ('Autres news', 'http://www.jeuxvideo.com/rss/rss-news.xml'),
44 ('Autres vidéos', 'http://www.jeuxvideo.com/rss/rss-videos.xml'),
45 ('Autres articles', 'http://www.jeuxvideo.com/rss/rss.xml'),
46 ]