Update Antyweb

Merge branch 'master' of https://github.com/adrianf0/calibre
This commit is contained in:
Kovid Goyal 2016-06-18 14:30:51 +05:30
commit 01361987e8

View File

@ -4,7 +4,7 @@ from calibre.web.feeds.news import BasicNewsRecipe
class AntywebRecipe(BasicNewsRecipe):
encoding = 'utf-8'
__license__ = 'GPL v3'
__author__ = u'Artur Stachecki <artur.stachecki@gmail.com>'
__author__ = u'Artur Stachecki <artur.stachecki@gmail.com>, adrianf0'
language = 'pl'
version = 1
title = u'Antyweb'
@ -18,7 +18,7 @@ class AntywebRecipe(BasicNewsRecipe):
oldest_article = 7
max_articles_per_feed = 100
remove_javascript = True
simultaneous_downloads = 3
simultaneous_downloads = 10
ignore_duplicate_articles = {'title', 'url'} # zignoruj zduplikowane artykuły o takich samych tytułach LUB adresach
scale_news_images =True
conversion_options = { 'tags' : u'news, aplikacje mobilne, Android, iOS, Windows Phone ',
@ -28,11 +28,12 @@ class AntywebRecipe(BasicNewsRecipe):
keep_only_tags=[]
keep_only_tags.append(dict(name = 'h1'))
keep_only_tags.append(dict(name = 'div', attrs = {'class' : 'entry-cover'}))
keep_only_tags.append(dict(name = 'div', attrs = {'class' : 'news-content'}))
keep_only_tags.append(dict(name = 'article', attrs = {'class' : 'article'}))
remove_tags =[]
remove_tags.append(dict(name = 'div', attrs = {'class' : 'ac-footer group'}))
feeds = [
(u'News', 'http://feeds.feedburner.com/antyweb'),
(u'Felietony', 'http://feeds.feedburner.com/AntywebFelietony'),
(u'Apple', 'http://feeds.feedburner.com/AntywebApple'),
(u'Gry', 'http://feeds.feedburner.com/AntywebGry'),