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

34 lines
861 B
Python

#!/usr/bin/env python2
__license__ = 'GPL v3'
__copyright__ = '2009, Rick Kellogg'
'''
java.dzone.com
'''
from calibre.web.feeds.news import BasicNewsRecipe
class Engadget(BasicNewsRecipe):
title = u'Javalobby'
__author__ = 'Rick Kellogg'
description = 'news'
language = 'en'
oldest_article = 7
max_articles_per_feed = 100
no_stylesheets = True
use_embedded_content = False
remove_tags = [dict(name='div', attrs={'class': ["fivestar-static-form-item", "relatedContent", "pagination clearfix", "addResources"]}),
dict(name='div', attrs={'id': ["comments"]})]
keep_only_tags = [dict(name='div', attrs={'id': ["article"]})]
feeds = [(u'news', u'http://feeds.dzone.com/javalobby/frontpage')]
def get_article_url(self, article):
url = article.get('link', None)
return url