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 08-04-2011, 05:33 PM   #1
fw190a8
Junior Member
fw190a8 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2011
Device: Kindle 3
Basic ShackNews recipe

Here's my recipe for ShackNews, a video games news site. Their HTML is already pretty nice so it doesn't do much. Comments and improvements welcome as I am just starting out.
PHP Code:
class AdvancedUserRecipe1312317103(BasicNewsRecipe):
    
title          u'ShackNews'
    
oldest_article 7
    max_articles_per_feed 
100
    no_stylesheets 
True

    keep_only_tags 
= [dict(name='div'attrs={'id':['article']})]
    
remove_tags    = [
        
dict(name='ul',attrs={'class':['share']}),
        
dict(name='div',attrs={'class':['tags']}),
        
dict(name='div',attrs={'class':['focalbox']}),
        
dict(name='div',attrs={'class':['embedimage']})
    ]
    
extra_css      'blockquote {font-style: italic;}'

    
feeds          = [(u'ShackNews'u'http://feed.shacknews.com/shackfeed.xml')] 
fw190a8 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
Recipe works when mocked up as Python file, fails when converted to Recipe ode Recipes 7 09-04-2011 04:57 AM
ShackNews works with 5 articles but no more fw190a8 Recipes 2 08-04-2011 05:34 PM
A basic question SomeNewGuy ePub 6 05-13-2011 01:03 PM
New NC - Some basic questions goldberry Nook Color & Nook Tablet 3 04-08-2011 07:12 AM
basic needs, which reader? shmish Which one should I buy? 8 02-08-2010 11:47 PM


All times are GMT -4. The time now is 05:26 PM.


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