calibre/recipes/yazihane.recipe
2024-03-30 13:03:29 +05:30

23 lines
767 B
Python

import re
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1350731826(BasicNewsRecipe):
title = u'Yazihane'
oldest_article = 30
max_articles_per_feed = 100
__author__ = 'A Erdogan'
description = 'Sports Blog'
publisher = 'yazihaneden.com'
category = 'sports, basketball, nba, cycling, euroleague'
no_stylesheets = True
use_embedded_content = False
masthead_url = 'http://www.yazihaneden.com/wp-content/uploads/Untitled-1.png'
language = 'tr'
keep_only_tags = [
dict(name='div', attrs={'id': re.compile('(^|| )post-($|| )', re.DOTALL)})]
remove_tags_after = dict(name='div', attrs={'class': 'post-footer clear'})
feeds = [(u'Yazihane', u'http://www.yazihaneden.com/feed/')]