1#!/usr/local/bin/python3.8
2# -*- coding: utf-8 -*-
3
4__license__ = 'GPL v3'
5__copyright__ = '2015, lcd1232, malexey1984@gmail.com'
6__author__ = 'lcd1232'
7
8from calibre.web.feeds.news import BasicNewsRecipe
9
10
11class Computerra(BasicNewsRecipe):
12    title = u'\u041a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0440\u0430'
13    oldest_article = 100
14    __author__ = 'lcd1232'
15    max_articles_per_feed = 50
16    use_embedded_content = False
17    remove_javascript = True
18    no_stylesheets = True
19    conversion_options = {'linearize_tables': True}
20    simultaneous_downloads = 5
21    language = 'ru'
22    description = u'Компьютерра: все новости про компьютеры, железо, новые технологии, информационные технологии'
23
24    feeds = [(u'Компьютерра-Онлайн', 'http://feeds.feedburner.com/ct_news/'), ]
25
26    remove_tags = [
27        dict(name='div', attrs={'class': [
28             'article-soc', 'article-tags', 'also', 'item-article item-article-also', 'item-ban-700']}),
29        dict(name='div', attrs={'id': 'form'})
30    ]
31
32    keep_only_tags = [
33        dict(name='div', attrs={'class': 'main-column main-column-article'}),
34        dict(name='div', attrs={'id': 'posts'})
35    ]
36    cover_url = 'https://pp.vk.me/c628429/v628429830/19a22/mlm_LC_ZEa4.jpg'
37