View Single Post
Old 02-24-2011, 07:20 AM   #1
amontiel69
Junior Member
amontiel69 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2011
Device: Kindle
Recipe for La Nacion of Costa Rica

Hi there,

I want to create a recipe for a Costa Rican newspaper called La Nacion (http://www.nacion.com). The link to the page where I got the feeds from is http://www.nacion.com/Generales/Pagi...rales/RSS.aspx. I tried to create it myself and this is what I have so far

class AdvancedUserRecipe1298476526(BasicNewsRecipe):
title = u'La Nacion'
oldest_article = 7
max_articles_per_feed = 10
no_stylesheets = True
remove_tags = [dict(name='div', attrs={'class':['footer_derechos', 'compartir', 'opinar_forma']})]

feeds = [(u'Portada', u'http://www.nacion.com/Generales/RSS/EdicionRss.aspx?section=portada'), (u'Ultima Hora', u'http://www.nacion.com/Generales/RSS/UltimaHoraRss.aspx'), (u'Nacionales', u'http://www.nacion.com/Generales/RSS/EdicionRss.aspx?section=elpais'), (u'Sucesos', u'http://www.nacion.com/Generales/RSS/EdicionRss.aspx?section=sucesos'), (u'Deportes', u'http://www.nacion.com/Generales/RSS/EdicionRss.aspx?section=deportes'), (u'Internacionales', u'http://www.nacion.com/Generales/RSS/EdicionRss.aspx?section=mundo'), (u'Econom\xeda', u'http://www.nacion.com/Generales/RSS/EdicionRss.aspx?section=economia'), (u'Aldea Global', u'http://www.nacion.com/Generales/RSS/EdicionRss.aspx?section=aldeaglobal'), (u'Opini\xf3n', u'http://www.nacion.com/Generales/RSS/EdicionRss.aspx?section=opinion')]


I am not totally happy with the results as I was unable to remove any of the DIV called compartir, footer_derechos and opinar_forma are just copyright notices and links to social networks. Also, the layout is not entirely satisfactory as there are lots of extra stuff that needs to be removed, such as the weather information on the front page.

Can anyone help me make this a better looking recipe? I know a lot of Costa Rican Kindle users will be very happy.

Thanks a lot

Last edited by amontiel69; 02-24-2011 at 08:19 AM. Reason: Added link to newspaper
amontiel69 is offline   Reply With Quote