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 02-11-2012, 04:29 AM   #1
lcask
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 pls.help 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)?

Thanx

Lubo

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
lcask
Junior Member
lcask began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2012
Device: Kindle
Noone...

Here is the PRAVDA recipe, I need to add access to articles open only to PIANO subscribed (as I am) readers (upper right corner) http://www.pravda.sk/

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

no_stylesheets = True
remove_javascript = True

# Feeds from: http://spravy.pravda.sk/info.asp?y=sk_kskop/rssinfo.htm
feeds = []
feeds.append((u'Spravodajstvo', u'http://servis.pravda.sk/rss.asp'))
feeds.append((u'N\u00E1zory', u'http://servis.pravda.sk/rss.asp?o=sk_nazory'))
feeds.append((u'\u0160port', u'http://servis.pravda.sk/rss.asp?o=sk_sport'))
feeds.append((u'Peniaze', u'http://servis.pravda.sk/rss.asp?o=sk_peniaze'))
feeds.append((u'Koktail', u'http://servis.pravda.sk/rss.asp?o=sk_koktail'))
feeds.append((u'Kult\u00FAra', u'http://servis.pravda.sk/rss.asp?o=sk_kultura'))
feeds.append((u'B\u00FDvanie', u'http://servis.pravda.sk/rss.asp?o=sk_byvanie'))
feeds.append((u'Veda a Technika', u'http://servis.pravda.sk/rss.asp?o=sk_veda'))
feeds.append((u'Mozgov\u00F1a', u'http://servis.pravda.sk/rss.asp?o=sk_mozgovna'))
feeds.append((u'Auto', u'http://servis.pravda.sk/rss.asp?o=sk_autoweb'))
feeds.append((u'Cestovanie', u'http://servis.pravda.sk/rss.asp?o=sk_cestovanie'))
feeds.append((u'Regi\u00F3ny', u'http://servis.pravda.sk/rss.asp?r=sk_regiony'))
feeds.append((u'Profesia', u'http://servis.pravda.sk/rss.asp?o=sk_profesia'))
feeds.append((u'Zdravie', u'http://servis.pravda.sk/rss.asp?o=sk_zdravie'))
feeds.append((u'\u010C\u00EDtajme de\u0165om', u'http://servis.pravda.sk/rss.asp?o=sk_citajme'))

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 'http://sport.pravda.sk/tlac.asp?r=' + app + '&' + id
lcask 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
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 04:51 PM.


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