Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sporza.be by erkfuizfeuadjfjzefzfuzeff
- Loading branch information
1 parent
c155646
commit 15944ff
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/usr/bin/env python2 | ||
|
||
from calibre.web.feeds.news import BasicNewsRecipe | ||
|
||
|
||
class Sporzabe(BasicNewsRecipe): | ||
title = u'Sporza.be' | ||
__author__ = u'erkfuizfeuadjfjzefzfuzeff' | ||
description = u'Sport news from Belgium in Dutch' | ||
oldest_article = 7 | ||
language = 'nl_BE' | ||
|
||
max_articles_per_feed = 100 | ||
no_stylesheets = True | ||
use_embedded_content = False | ||
|
||
keep_only_tags = [ | ||
dict(name='title'), dict(name='div', attrs={'id': 'intro'}), dict(name='h3'), | ||
dict(name='h1'), dict(name='span', attrs={'class': 'media_holder'}), | ||
dict(name='div', attrs={'class': 'divider image'}), | ||
dict(name='div', attrs={'class': 'paragraph'}) | ||
] | ||
|
||
remove_tags = [] | ||
|
||
feeds = [ | ||
( | ||
u'Voetbal', u'http://sporza.be/cm/sporza/voetbal?mode=atom&action=submit' | ||
), | ||
( | ||
u'Wielrennen', | ||
u'http://sporza.be/cm/sporza/wielrennen?mode=atom&action=submit' | ||
), | ||
( | ||
u'Tennis', u'http://sporza.be/cm/sporza/tennis?mode=atom&action=submit' | ||
), | ||
( | ||
u'Auto en Motor', | ||
u'http://sporza.be/cm/sporza/auto_motor?mode=atom&action=submit' | ||
), | ||
( | ||
u'Atletiek', | ||
u'http://sporza.be/cm/sporza/atletiek?mode=atom&action=submit' | ||
), | ||
( | ||
u'Zaal', u'http://sporza.be/cm/sporza/zaal?mode=atom&action=submit' | ||
), | ||
( | ||
u'Ander nieuws', | ||
u'http://sporza.be/cm/sporza/ander_nieuws?mode=atom&action=submit' | ||
) | ||
] |