Recipes BandaAncha.eu News Manual guide
I so three examples about this web news:
Not inser on avance mode, or lost canal rss, more easy on basic mode:
insertando en el canal, en modo basico:
feeds.feedburner.com/bandaanchaeu
----------------
Other example more long:
and:
Spoiler:
Code:
#!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
from calibre.web.feeds.news import re
class BandaAnchaNews(BasicNewsRecipe):
title = u'BandaAncha News'
timefmt = ' [%d %b, %Y]'
__author__ = 'KRorschachZ'
description = 'Noticias Banda Ancha ISP´s & Tecnología'
# indicando en las dos variables siguientes 15-77, tarda 12 minutos
# en codificar el ebook. mas completo. evidentemente
oldest_article = 7
max_articles_per_feed = 55
use_embedded_content = False
publisher = 'BA'
category = 'Noticias Banda Ancha ISP´s & Tecnología'
language = 'es_ES'
publication_type = 'newsportal'
remove_javascript = True
extra_css = ' .txt_articulo{ font-family: sans-serif; font-size: medium; text-align: justify } .contentheading{font-family: serif; font-size: large; font-weight: bold; color: #000000; text-align: center}'
remove_tags = [
dict(name=['object','link','script','ul','iframe','ol'])
,dict(name='span', attrs={'class':['article-section']})
,dict(name='span', attrs={'class':['content_rating']})
,dict(name='span', attrs={'class':['content_vote']})
,dict(name='span', attrs={'class':['createby']})
,dict(name='div', attrs={'class':['dialog']})
,dict(name='div', attrs={'id':['jcWrapper']})
,dict(name='div', attrs={'class':['buttonheading']})
,dict(name='div', attrs={'class':['authordetails']})
,dict(name='table', attrs={'class':['pagenav']})
,dict(name='div', attrs={'id':['jc_commentFormDiv']})
]
remove_tags_after = dict(name='div', attrs={'id':'sidebar'})
feeds = [(u'BandaAncha News', u'http://feeds.feedburner.com/bandaanchaeu')]
Carefull that is vey heavy... need time 5~10 min on 3Ghz cpu... (old cpu ;-))
Examples:
version long:
http://img522.imageshack.us/img522/9113/screenshot25525.th.gif
version sort, and more days:
------
You can see 3 recipes on same www.
bye from Spain.
PD:
¿help with this other: ...?
;-)