03-14-2018, 08:20 PM | #1 |
Member
Posts: 21
Karma: 10
Join Date: May 2016
Device: Kindle Paper White
|
Update Recipe Folha de Sao Paulo - Brazil
Since the old recipe wasnt working any more due to site changes, I´ve maken a new one.
The only set back is that this new recipe has no cover (HELP ME WITH THAT IF YOU CAN). Please up date this recipe to the next Calibre version. Code:
#!/usr/bin/env python2 # vim:fileencoding=utf-8 from __future__ import unicode_literals, division, absolute_import, print_function from calibre.web.feeds.news import BasicNewsRecipe class AdvancedUserRecipe1517784924(BasicNewsRecipe): title = 'Folha - beta version' oldest_article = 1 max_articles_per_feed = 100 auto_cleanup = True feeds = [ (u'Poder', u'http://feeds.folha.uol.com.br/poder/rss091.xml') ,(u'Cotidiano', u'http://feeds.folha.uol.com.br/cotidiano/rss091.xml') ,('Painel', 'http://painel.blogfolha.uol.com.br/feed/'), ('Josias', 'http://josiasdesouza.blogosfera.uol.com.br/feed/'), ('Milton Neves', 'http://blogmiltonneves.bol.uol.com.br/feed/'), ('Noblat', 'http://noblat.oglobo.globo.com/rss/ultimas.feed') ,(u'Mercado', u'http://feeds.folha.uol.com.br/mercado/rss091.xml') ,(u'Mundo', u'http://feeds.folha.uol.com.br/mundo/rss091.xml') ,(u'Esporte', u'http://feeds.folha.uol.com.br/esporte/rss091.xml') ,(u'Comida', u'http://feeds.folha.uol.com.br/comida/rss091.xml') ,(u'Tec', u'http://feeds.folha.uol.com.br/tec/rss091.xml') ,(u'Ilustrada', u'http://feeds.folha.uol.com.br/ilustrada/rss091.xml') ,(u'Opiniao', u'http://feeds.folha.uol.com.br/opiniao/rss091.xml') ,(u'Ci\xEAncia', u'http://feeds.folha.uol.com.br/ciencia/rss091.xml') ,(u'Equil\xEDbrio e Sa\xFAde', u'http://feeds.folha.uol.com.br/equilibrioesaude/rss091.xml') ,(u'Elio Gaspari', u'http://feeds.folha.uol.com.br/colunas/eliogaspari/rss091.xml') ,(u'Tati Bernardi', u'http://feeds.folha.uol.com.br/colunas/tatibernardi/rss091.xml') ,(u'PVC', u'http://feeds.folha.uol.com.br/colunas/pvc/rss091.xml') ,(u'Clóvis Rossi', u'http://feeds.folha.uol.com.br/colunas/clovisrossi/rss091.xml') ,(u'Hélio Schwartsman', u'http://feeds.folha.uol.com.br/colunas/helioschwartsman/rss091.xml') ,(u'Janio de Freitas', u'http://feeds.folha.uol.com.br/colunas/janiodefreitas/rss091.xml') ,(u'João Pereira Coutinho', u'http://feeds.folha.uol.com.br/colunas/joaopereiracoutinho/rss091.xml') ,(u'Juca', u'http://feeds.folha.uol.com.br/colunas/jucakfouri/rss091.xml') ,(u'Vinicius Torres Freitas', u'http://feeds.folha.uol.com.br/colunas/viniciustorres/rss091.xml') ,(u'Monica Bergamo', u'http://feeds.folha.uol.com.br/colunas/monicabergamo/rss091.xml') ,(u'Alexandre Schwartsman', u'http://feeds.folha.uol.com.br/colunas/alexandreschwartsman/rss091.xml') ,(u'Vinicius Mota', u'http://feeds.folha.uol.com.br/colunas/viniciusmota/rss091.xml') ,(u'Tostao', u'http://feeds.folha.uol.com.br/colunas/tostao/rss091.xml') ,(u'Reinaldo Azevedo', u'http://feeds.folha.uol.com.br/colunas/reinaldoazevedo/rss091.xml') ,(u'Contardo', u'http://feeds.folha.uol.com.br/colunas/contardocalligaris/rss091.xml') ,(u'Samuel Pessoa', u'http://feeds.folha.uol.com.br/colunas/samuelpessoa/rss091.xml') ,(u'Onbudsman', u'http://feeds.folha.uol.com.br/colunas/paula-cesarino-costa-ombudsman/rss091.xml') ,('Mariliz Pereira', 'http://feeds.folha.uol.com.br/colunas/marilizpereirajorge/rss091.xml') ,('X', 'http://xdesexo.blogfolha.uol.com.br/feed/') ] |
03-15-2018, 12:47 AM | #2 |
creator of calibre
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
03-15-2018, 08:17 AM | #3 |
Big Poppa
Posts: 110
Karma: 10
Join Date: Jul 2010
Device: Nook
|
To fix the cover image you probably want to pull it from the print edition page by taking it from class=c-edition-cover__header from here http://www1.folha.uol.com.br/fsp/
you can look at the NYTimes for a similar approach I think |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Updated recipe for Folha de Sao Paulo (Brazil) | XaleM | Recipes | 2 | 02-04-2018 05:44 PM |
Folha de Sao Paulo [Printed edition] recipe broken | William_M_S | Recipes | 24 | 10-24-2017 04:36 AM |
New recipe for Folha de Sao Paulo - printed version | joaobertacchi | Recipes | 3 | 06-16-2013 12:51 AM |
Request: Folha de Sao Paulo (Brazil) from UOL portal | luis.nando | Recipes | 6 | 09-27-2011 09:04 AM |
Upgrade recipe for Folha de São Paulo and Estadão with cover | euleralves | Recipes | 4 | 03-31-2011 01:02 AM |