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 10-06-2010, 05:33 AM   #1
bucsie
Connoisseur
bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.
 
Posts: 70
Karma: 674766
Join Date: Sep 2010
Device: Kindle
recipe for gsp.ro

a recipe for Romanian largest sports newspaper
Spoiler:
Code:
class AdvancedUserRecipe1286351181(BasicNewsRecipe):
    title          = u'gsp.ro'
    oldest_article = 2
    max_articles_per_feed = 100
    language='ro'
    cover_url ='http://www.gsp.ro/images/sigla_rosu.jpg'
    
    remove_tags = [
                       dict(name='div', attrs={'class':['related_articles', 'articol_noteaza straight_line dotted_line_top', 'comentarii','mai_multe_articole']}),
                       dict(name='div', attrs={'id':'icons'})
                        ]
    remove_tags_after = dict(name='div', attrs={'id':'adoceanintactrovccmgpmnyt'})

    feeds          = [(u'toate stirile', u'http://www.gsp.ro/index.php?section=section&screen=rss')]

    def print_version(self, url):
         return 'http://www1.gsp.ro/print/' + url[(url.rindex('/')+1):]
bucsie is offline   Reply With Quote
Old 02-12-2011, 04:37 AM   #2
sorin
Connoisseur
sorin began at the beginning.
 
Posts: 73
Karma: 44
Join Date: Sep 2010
Device: kindle 3
I begin to create recipes (using a template made by Darko Miletic, many thanks) for some romanian newspapers like:

hotnews
adevarul
money
prosport
realitatea
capital
gandul
mediafax
standardmoney
jurnalul
academia catavencu

Here there are.
Attached Files
File Type: zip Romanian Recipes - v1.1.zip (9.5 KB, 112 views)

Last edited by sorin; 02-15-2011 at 06:07 AM.
sorin is offline   Reply With Quote
Old 02-14-2011, 05:37 PM   #3
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: 24,762
Karma: 4369667
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
In your recipes do not use html entities for unicode characters, instead use python escape sequences or utf-8 encoded characters

'ă' becomes u'\u0103' or u'ă'

The first line of your recipe should be

# -*- coding: utf-8 -*-

Also instead of

language = _('Romanian')

use

language = 'ro'

let me know when you've made the changes
kovidgoyal is offline   Reply With Quote
Old 02-15-2011, 06:09 AM   #4
sorin
Connoisseur
sorin began at the beginning.
 
Posts: 73
Karma: 44
Join Date: Sep 2010
Device: kindle 3
I changed the recipes and uploaded them in my previous post using version name 1.1.
sorin is offline   Reply With Quote
Old 02-15-2011, 11:13 AM   #5
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: 24,762
Karma: 4369667
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Thanks, added.
kovidgoyal is offline   Reply With Quote
Old 02-21-2011, 02:48 PM   #6
sorin
Connoisseur
sorin began at the beginning.
 
Posts: 73
Karma: 44
Join Date: Sep 2010
Device: kindle 3
I create some recipes for others romanian newspapers like: chipro, csid, curierulnational, descopera, fhmro, go4it, hotcity, nationalgeoro, romanialiber, tabu, unica and favicons using getfavicon site.
Attached Files
File Type: zip Romanian Recipes 2 - v1.0.zip (72.1 KB, 112 views)
sorin is offline   Reply With Quote
Old 02-21-2011, 04:43 PM   #7
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: 24,762
Karma: 4369667
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Thanks, added.
kovidgoyal is offline   Reply With Quote
Old 02-24-2011, 05:59 AM   #8
sorin
Connoisseur
sorin began at the beginning.
 
Posts: 73
Karma: 44
Join Date: Sep 2010
Device: kindle 3
gsp.ro has a new site and i had to change the recipe. I included and an improved recipe for adevarul.
Attached Files
File Type: zip Romanian Recipes 3 - v1.0.zip (1.6 KB, 105 views)
sorin is offline   Reply With Quote
Old 02-27-2011, 12:12 PM   #9
sorin
Connoisseur
sorin began at the beginning.
 
Posts: 73
Karma: 44
Join Date: Sep 2010
Device: kindle 3
I made recipes for historia.ro and bucataras.ro
Attached Files
File Type: zip Romanian Recipes 4 - v1.0.zip (3.0 KB, 107 views)
sorin is offline   Reply With Quote
Old 03-07-2011, 12:47 PM   #10
sorin
Connoisseur
sorin began at the beginning.
 
Posts: 73
Karma: 44
Join Date: Sep 2010
Device: kindle 3
Hello, i made new recipes for hit.ro, kamikaze.ro, wallstreet.ro and some improvements for evz.ro and natgeo.ro
Attached Files
File Type: zip Romanian Recipes 5 - v1.0.zip (7.2 KB, 108 views)
sorin is offline   Reply With Quote
Old 03-09-2011, 06:07 AM   #11
sorin
Connoisseur
sorin began at the beginning.
 
Posts: 73
Karma: 44
Join Date: Sep 2010
Device: kindle 3
Hello again,
I found some nice romanian newspapers and magazines.
Here are the recipes for cotidianul, felicia, financiarul, imperator travel, promotor ..
Attached Files
File Type: zip Romanian Recipes 6 - v1.0.zip (12.4 KB, 97 views)
sorin is offline   Reply With Quote
Old 03-10-2011, 08:18 AM   #12
sorin
Connoisseur
sorin began at the beginning.
 
Posts: 73
Karma: 44
Join Date: Sep 2010
Device: kindle 3
I made a recipe for publika.md. It is in romanian language.
Attached Files
File Type: zip publika.zip (1.2 KB, 82 views)
sorin is offline   Reply With Quote
Old 03-11-2011, 11:54 AM   #13
sorin
Connoisseur
sorin began at the beginning.
 
Posts: 73
Karma: 44
Join Date: Sep 2010
Device: kindle 3
Hello, i made recipes for avantaje.ro, onemagazine.ro, pcworld.ro, protvmagazin.ro, psychologies.ro, tvmania.ro, viva.ro
Enjoy.
Attached Files
File Type: zip Romanian Recipes 7 - v1.0.zip (11.2 KB, 78 views)
sorin is offline   Reply With Quote
Old 04-13-2011, 03:38 AM   #14
sorin
Connoisseur
sorin began at the beginning.
 
Posts: 73
Karma: 44
Join Date: Sep 2010
Device: kindle 3
Updated recipe for tabu.ro
Attached Files
File Type: zip tabu.zip (777 Bytes, 67 views)
sorin is offline   Reply With Quote
Old 04-21-2011, 06:16 AM   #15
sorin
Connoisseur
sorin began at the beginning.
 
Posts: 73
Karma: 44
Join Date: Sep 2010
Device: kindle 3
New recipe for babyonline.ro and some improvements for tabu, egirl and ecusine.
Attached Files
File Type: zip recipe.zip (3.4 KB, 69 views)
sorin 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
I need some help with a recipe jefferson_frantz Recipes 14 11-22-2010 02:06 PM
New recipe kiklop74 Recipes 0 10-05-2010 04:41 PM
New recipe kiklop74 Recipes 0 10-01-2010 02:42 PM
Recipe Help lrain5 Calibre 3 05-09-2010 10:42 PM
Recipe Help hellonewman Calibre 1 01-23-2010 03:45 AM


All times are GMT -4. The time now is 01:10 PM.


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