calibre/recipes/lifehacker_pl.recipe
Kovid Goyal 29cd8d64ea
Change shebangs to python from python2
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30

30 lines
937 B
Python

#!/usr/bin/env python
__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'})]