Quote:
Originally Posted by nachalca
Hello, I am from Uruguay, I've just started using calibre.
I am trying to create a recipe for a weakly uruguayan newspaper called Brecha ( www.brecha.com.uy), but I am copletely lost.
The sites require subscription, I've tried use the new york times example
and the Folha do Sao Paulo example, but none of them sees to work here.
Could anybody create a recipe for Brecha ?
Thank you !!
nachalca
|
you can download news from your website without login
Spoiler:
from calibre.web.feeds.recipes import BasicNewsRecipe class General(BasicNewsRecipe):
title = u'brecha'
description = u'La brecha en tinta electronica'
language = 'es'
timefmt = '[%a, %d %b, %Y]'
oldest_article = 7
max_articles_per_feed = 100
auto_cleanup = True
remove_tags_before = dict(id='article')
remove_tags_after = dict(id='article')
feeds = [
(u'tapa', u'http://www.brecha.com.uy/index.php/component/phocagallery/category/1-tapas?format=feed&type=rss'),
(u'Politica', u'http://www.brecha.com.uy/index.php/politica-uruguaya?format=feed&type=rss'),
(u'Internacionales', u'http://www.brecha.com.uy/index.php/mundo?format=feed&type=rss'),
(u'Cultura', u'http://www.brecha.com.uy/index.php/cultura?format=feed&type=rss'),
(u'cultura1', u'http://www.brecha.com.uy/index.php/cultura/vueltas-de-montevideo?format=feed&type=rss'),
(u'cultura2', u'http://www.brecha.com.uy/index.php/cultura/secos-y-mojados?format=feed&type=rss'),
(u'literarias', u'http://www.brecha.com.uy/index.php/cultura/literarias?format=feed&type=rss'),
(u'Sociedad', u'http://www.brecha.com.uy/index.php/sociedad?format=feed&type=rss'),
(u'Especiales', u'http://www.brecha.com.uy/index.php/especiales?format=feed&type=rss'),
(u'Contratapa', u'http://www.brecha.com.uy/index.php/contratapa?format=feed&type=rss')
]