Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 08-13-2011, 10:07 AM   #1
yoyoba
Junior Member
yoyoba began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2011
Device: amazon kindle
New recipe in spanish - Muy Interesante

__license__ = 'GPL v3'
__copyright__ = '2011, Oscar Megia Lopez'
'''
muyinteresante.es
'''
import re
from calibre.web.feeds.recipes import BasicNewsRecipe

class MuyInteresante2(BasicNewsRecipe):
title = u'Muy Interesante'
__author__ = 'Oscar Megia Lopez'
description = 'Revista Muy Interesante'
oldest_article = 90
max_articles_per_feed = 100
no_stylesheets = True
#delay = 1
use_embedded_content = False
encoding = 'utf8'
publisher = 'Muy Interesante'
category = 'Ciencia'
language = 'es_ES'
publication_type = 'Magazine'
extra_css = ' body{ font-family: Verdana,Helvetica,Arial,sans-serif } .contentheading{font-weight: bold} .txt_articulo{display: block; padding: 0; border: 1px solid; width: 40%; font-size: small} .story-feature h2{text-align: center; text-transform: uppercase} '
preprocess_regexps = [(re.compile(r'<!--.*?-->', re.DOTALL), lambda m: '')]
conversion_options = {
'comments' : description
,'tags' : category
,'language' : language
,'publisher' : publisher
,'linearize_tables': True
}

keep_only_tags = [
dict(name='div', attrs={'class':['article']})
,dict(attrs={'class':['txt_articulo']})
]

remove_tags = [
dict(name='div', attrs={'class':['otrosenlaces_title', 'otrosenlaces_parent', 'otrosenlaces', \
'tags_articles', 'story-feature narrow', 'bajo_title']}),
dict(name='a', attrs={'class':['twitter-share-button']}),
dict(name='div', attrs={'id':['comment']})
]


remove_attributes = ['width','height']

feeds = [
('Muy Interesante.es', 'http://feeds.feedburner.com/Muyinteresantees?format=xml'),
]
yoyoba is offline   Reply With Quote
Old 08-13-2011, 12:28 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,323
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is already a recipe for Revista Muy Interesante is your's different?
kovidgoyal is offline   Reply With Quote
Advert
Old 08-19-2011, 09:35 AM   #3
yoyoba
Junior Member
yoyoba began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2011
Device: amazon kindle
Hi

In my ubuntu (calibre version 0.7.18) there is not recipe for the magazine Muy Interesante, so I created a new one but I forgot to look before if there's this recipe here.

I tried the recipe from Gustavo Azambuja and is different (I dont download magazine cover and my recipe do not download the same articles).

To be honest the previous recipe is better.

Regards,
Oscar Megia
yoyoba is offline   Reply With Quote
Old 08-19-2011, 09:40 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,323
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Cool, thanks.
kovidgoyal is offline   Reply With Quote
Reply

Tags
recipe, spanish


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recipe in spanish - Patente de corso yoyoba Recipes 0 08-13-2011 10:04 AM
Upgrade recipe for weblogssl (Spanish) desUBIKado Recipes 0 04-13-2011 05:31 PM
New recipe in Spanish: ABC.es rickydh Recipes 0 02-11-2011 11:33 AM
One new recipe and other one updated (In Spanish) desUBIKado Recipes 3 01-19-2011 03:58 AM


All times are GMT -4. The time now is 05:55 PM.


MobileRead.com is a privately owned, operated and funded community.