calibre/recipes/lamebook.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

31 lines
964 B
Plaintext

from calibre.web.feeds.news import BasicNewsRecipe
class LamebookRecipe(BasicNewsRecipe):
title = 'Lamebook'
__author__ = 'atordo'
description = 'Funny Facebook Statuses, Fails, LOLs and More - The Original'
cover_url = 'http://www.lamebook.com/wp-content/themes/lamebook/images/h1-new2.png'
oldest_article = 7
max_articles_per_feed = 50
auto_cleanup = False
no_stylesheets = True
remove_javascript = True
language = 'en'
use_embedded_content = False
publication_type = 'blog'
reverse_article_order = True
encoding = 'utf-8'
keep_only_tags = [
dict(name='div', attrs={'class': 'entry'}), dict(
name='ol', attrs={'class': 'commentlist'})
]
remove_tags = [
dict(name='div', attrs={'style': [
'clear: left; float: left; margin: 0 15px 0 0;', 'float: left; margin: 0 15px 0 0;']})
]
feeds = [('Lamebook', 'http://feeds.feedburner.com/Lamebook')]