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

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


Thread Tools Search this Thread
Old 02-11-2012, 04:29 AM   #1
Junior Member
lcask began at the beginning.
Posts: 2
Karma: 10
Join Date: Feb 2012
Device: Kindle
Help with updating recipes for Slovak news

Could someone me with an update of existing recipes for Slovak news "Pravda" and "Tyzden" to embed user and password option for Piano users (paid service with extra access to articles)?



Last edited by lcask; 02-11-2012 at 04:32 AM.
lcask is offline   Reply With Quote
Old 02-12-2012, 01:16 PM   #2
Junior Member
lcask began at the beginning.
Posts: 2
Karma: 10
Join Date: Feb 2012
Device: Kindle

Here is the PRAVDA recipe, I need to add access to articles open only to PIANO subscribed (as I am) readers (upper right corner)

oldest_article = 1
max_articles_per_feed = 100
use_embedded_content = False
remove_empty_feeds = True

no_stylesheets = True
remove_javascript = True

# Feeds from:
feeds = []
feeds.append((u'Spravodajstvo', u''))
feeds.append((u'N\u00E1zory', u''))
feeds.append((u'\u0160port', u''))
feeds.append((u'Peniaze', u''))
feeds.append((u'Koktail', u''))
feeds.append((u'Kult\u00FAra', u''))
feeds.append((u'B\u00FDvanie', u''))
feeds.append((u'Veda a Technika', u''))
feeds.append((u'Mozgov\u00F1a', u''))
feeds.append((u'Auto', u''))
feeds.append((u'Cestovanie', u''))
feeds.append((u'Regi\u00F3ny', u''))
feeds.append((u'Profesia', u''))
feeds.append((u'Zdravie', u''))
feeds.append((u'\u010C\u00EDtajme de\u0165om', u''))

remove_tags = []
remove_tags.append(dict(name = 'p', attrs = {'class': 'spatNaClanok'}))
remove_tags.append(dict(name = 'ul'))

extra_css = '''
@font-face {font-family: "serif1";src:url(res:///opt/sony/ebook/FONT/tt0011m_.ttf)}
@font-face {font-family: "sans1";src:url(res:///opt/sony/ebook/FONT/LiberationSans.ttf)}
body {font-family: sans1, serif1;}
.art-info {font-size: x-small; color: #696969; margin-bottom: 0.3em;}
.img-info {font-size: x-small; color: #696969;}

def print_version(self, url):
ignore, sep, main = url.rpartition('/')
app, sep, id = main.rpartition('?')

app = app.replace('.asp', '')

return '' + app + '&' + id
lcask is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web server not updating when news have been collected TomasG Calibre 0 02-07-2012 05:24 PM
Four Greek news recipes SteliosGero Recipes 6 12-18-2011 12:23 PM
Using News Recipes: Start Here Starson17 Recipes 0 02-14-2011 05:47 PM
Arabic News Recipes electromikey Recipes 0 02-12-2011 09:50 AM
Updating RSS-news on the reader dsip Calibre 3 03-24-2009 06:54 PM

All times are GMT -4. The time now is 06:24 PM. is a privately owned, operated and funded community.