Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-03-2010, 01:52 AM   #1
KRorschachZ
Update
KRorschachZ doesn't litterKRorschachZ doesn't litterKRorschachZ doesn't litter
 
KRorschachZ's Avatar
 
Posts: 100
Karma: 212
Join Date: Nov 2010
Device: kindle DX graphite, we need update/firmware with optios PDF Kindle 3
Post Recipes BandaAncha.eu News Manual guide

Recipes BandaAncha.eu News Manual guide

I so three examples about this web news:

Spoiler:

Code:
class AdvancedUserRecipe1288742903(BasicNewsRecipe):
 title = u'BandaAnchaOnlyNEWS'
 oldest_article = 12
 max_articles_per_feed = 77
 
 feeds = [(u'BandaAnchaOnlyNEWS', u'http://feeds.feedburner.com/bandaanchaeu')]


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:

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 = 44
 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}'
 feeds = [(u'BandaAncha News', u'http://feeds.feedburner.com/bandaanchaeu')]


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: ...?

;-)
KRorschachZ is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Schedule news, but manual download MightyMauz Calibre 3 09-04-2010 07:54 AM
Where my recipes are kept? bthoven Calibre 6 02-26-2010 12:20 AM
Baseball News Recipes? geneaber Calibre 1 11-12-2009 05:32 PM
AP News Begins Charging Web News Providers Bob Russell Lounge 1 04-20-2005 10:38 AM


All times are GMT -4. The time now is 11:58 AM.


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