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 01-28-2011, 10:06 AM   #1
sdow1
Connoisseur
sdow1 began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Apr 2010
Location: new york city
Device: nook, ipad
Update to The Onion AV Club Recipe

I noticed some time ago that, for some reason, the Onion AV Club recipe had the "Interview" section twice, and no TV section, even though it exists on the website.

I updated the recipe by swapping out one of the Interview feeds with the TV feed. It appears to work correctly.

(Note, swapping out feeds is pretty much the limit of my ability to muddle around with recipes)

Code:
#!/usr/bin/env  python

__license__   = 'GPL v3'
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
'''
bbc.co.uk
'''

from calibre.web.feeds.news import BasicNewsRecipe

class BBC(BasicNewsRecipe):
    title          = u'The Onion AV Club'
    __author__     = 'Stephen Williams'
    description    = 'Film, Television and Music Reviews'
    language = 'en'
    no_stylesheets = True
    oldest_article        = 2
    max_articles_per_feed = 100

    keep_only_tags     = [dict(name='div', attrs={'id':'content'})
                          ]

    remove_tags    = [dict(name='div', attrs={'class':['footer','tools_horizontal']}),
                      dict(name='div', attrs={'id':['tool_holder','elsewhere_on_avclub']})
                      ]
    extra_css      = '.headline {font-size: x-large;} \n .fact { padding-top: 10pt  }'

    feeds          = [
                      ('TV', 'http://www.avclub.com/feed/tv/'),
                      ('AV Club Daily', 'http://www.avclub.com/feed/daily'),
                      ('Film', 'http://www.avclub.com/feed/film/'),
                      ('Music', 'http://www.avclub.com/feed/music/'),
                      ('DVD', 'http://www.avclub.com/feed/dvd/'),
                      ('Books', 'http://www.avclub.com/feed/books/'),
                      ('Games', 'http://www.avclub.com/feed/games/'),
                      ('Interviews', 'http://www.avclub.com/feed/interview/'),
                    ]
sdow1 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
Ars Technica recipe update Alexis Recipes 2 08-04-2011 05:40 PM
Cracked.com and The Onion limnoski Recipes 11 04-29-2011 11:56 AM
Proposed Update for NYT Recipe bcollier Recipes 1 01-11-2011 03:15 PM
Request: Inquirer.net Recipe update zoilom Recipes 0 12-21-2010 01:06 AM
onion recipe Phoul Recipes 0 12-19-2010 02:56 PM


All times are GMT -4. The time now is 11:20 PM.


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