calibre/recipes/lifehacker_pl.recipe
Kovid Goyal 567040ee1e Perform PEP8 compliance checks on the entire codebase
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30

30 lines
938 B
Python

#!/usr/bin/env python2
__license__ = 'GPL v3'
__copyright__ = 'MrStefan'
'''
www.lifehacking.pl
'''
from calibre.web.feeds.news import BasicNewsRecipe
class lifehacking(BasicNewsRecipe):
title = u'Lifehacker Polska'
__author__ = 'MrStefan <mrstefaan@gmail.com>'
language = 'pl'
description = u'Lifehacking - sposoby na zwiększanie własnej wydajności. Ułatwiaj sobie życie, wykorzystując wiedzę, metody, technologie, przydatne strony ...' # noqa
masthead_url = 'http://lifehacking.pl/wp-content/themes/lifehacking/images/lifehackerlogo.png'
remove_empty_feeds = True
oldest_article = 7
max_articles_per_feed = 100
remove_javascript = True
no_stylesheets = True
feeds = [(u'Lifehacker polska', u'http://feeds.feedburner.com/pl_lh')]
keep_only_tags = [
dict(name='header', attrs={'class': 'td-post-title'}),
dict(name='div', attrs={'class': 'td-post-content'})]