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 05-26-2011, 02:05 PM   #1
quakergrey
Junior Member
quakergrey began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2011
Device: Kindle
Recipe for Words Without Borders

Hi,

I was wondering if anyone could be so kind as to put together a recipe for my favorite online journal, Words Without Borders. The xml for their RSS feed is below:

http://feeds.feedburner.com/wwborders?format=xml

Thanks so much!
quakergrey is offline   Reply With Quote
Old 06-17-2011, 06:05 AM   #2
sexymax15
Enthusiast
sexymax15 began at the beginning.
 
sexymax15's Avatar
 
Posts: 30
Karma: 12
Join Date: Jun 2011
Location: India
Device: Kindle 3g
Here's your recipe of "Words Without Borders":

Code:
#recipe created by sexymax15.....sexymax15@gmail.com
#Words without Borders recipe

class AdvancedUserRecipe1308302002(BasicNewsRecipe):
    title          = u'Words Without Borders'
    oldest_article = 90
    max_articles_per_feed = 30
    use_embedded_content = False

    remove_empty_feeds = True
    no_stylesheets = True
    remove_javascript = True
    keep_only_tags = {'class':'span-14 article'}
    remove_tags_after = [{'class':'addthis_toolbox addthis_default_style no_print'}]
    remove_tags = [{'class':['posterous_quote_citation','button']}]
    extra_css             = """ 
                               h1{font-family: Georgia,serif; font-size: large}h2{font-family: Georgia,serif; font-size: large} """



    feeds          = [(u'wwb', u'http://feeds.feedburner.com/wwborders?format=xml')]
Screenshot:


Last edited by kovidgoyal; 07-16-2011 at 07:20 PM.
sexymax15 is offline   Reply With Quote
Advert
Old 06-17-2011, 06:07 AM   #3
sexymax15
Enthusiast
sexymax15 began at the beginning.
 
sexymax15's Avatar
 
Posts: 30
Karma: 12
Join Date: Jun 2011
Location: India
Device: Kindle 3g
Recipe File
Attached Files
File Type: zip Words Without Borders_1125.zip (602 Bytes, 150 views)
sexymax15 is offline   Reply With Quote
Old 07-16-2011, 07:19 PM   #4
quakergrey
Junior Member
quakergrey began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2011
Device: Kindle
Recipe didn't work

I copied and pasted your recipe in and I'm getting an error message that says:

"Could not create recipe. Error:

expected an indented block (recipe21.py, line 8)"

I don't know python, so any idea what's wrong?
quakergrey is offline   Reply With Quote
Reply

Tags
recipe, words without borders

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unutterably Silly Just three words!!! vivaldirules Lounge 2542 10-20-2012 12:39 AM
Recipe works when mocked up as Python file, fails when converted to Recipe ode Recipes 7 09-04-2011 04:57 AM
Unutterably Silly Two words!!! vivaldirules Lounge 840 06-28-2011 11:07 AM
e-words.. AprilHare Lounge 30 11-26-2010 11:12 PM
Unutterably Silly Two words AprilHare Lounge 0 05-28-2009 06:45 AM


All times are GMT -4. The time now is 07:05 AM.


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