06-20-2015, 09:35 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jun 2015
Device: PC
|
Update fixing The Onion AV Club
Removing the keep tags bit and adding auto_cleanup did the trick. I also edited the feeds to adjust to the current tags, although for some reason comedy isn't working. If anyone can find out why that'd be great. here's the new code.
Code:
#!/usr/bin/env python2 __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 auto_cleanup = True 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 = [ ('Film', 'http://www.avclub.com/feed/rss?tags=film'), ('TV', 'http://www.avclub.com/feed/rss?tags=tv'), ('Music', 'http://www.avclub.com/feed/rss?tags=music'), ('Comedy', 'http://www.avclub.com/feed/rss?tags=comedy'), ('Books', 'http://www.avclub.com/feed/rss?tags=books'), ('Games', 'http://www.avclub.com/feed/rss?tags=games'), ('AUX', 'http://www.avclub.com/feed/rss?tags=aux'), ] Last edited by buzzbros2002; 06-20-2015 at 10:08 PM. Reason: Edited feeds |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
EBook price fixing: Did you receive a refund? / Update: up to $3.06 per book | doctorow | News | 49 | 02-09-2014 06:03 PM |
Glo Guide for Fixing Semi-Bricked Kobo Glo After Failed Manual Update | vernel1008 | Kobo Developer's Corner | 3 | 12-11-2013 03:03 AM |
Cracked.com and The Onion | limnoski | Recipes | 11 | 04-29-2011 11:56 AM |
Bebook Club: No Japanese chars after update to Firmware 1.5.120110224 | jorlin | BeBook | 12 | 04-21-2011 09:22 PM |
Update to The Onion AV Club Recipe | sdow1 | Recipes | 0 | 01-28-2011 10:06 AM |