Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 06-09-2011, 06:02 PM   #1
damboris
Junior Member
damboris began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2011
Device: kindle
recipe request (or help) - grantland.com

trying to put together a recipe for grantland.com... first try for me. the builtin generator does an OK job but any help will be appreciated. i'll post my first attempt if i ever get it working

thanks!

Last edited by damboris; 06-09-2011 at 06:02 PM. Reason: to add "thanks"
damboris is offline   Reply With Quote
Old 06-09-2011, 10:12 PM   #2
damboris
Junior Member
damboris began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2011
Device: kindle
this is the basic recipe i have put together...

class AdvancedUserRecipe1307668756(BasicNewsRecipe):
title = u'Grantland'
oldest_article = 7
max_articles_per_feed = 100
no_stylesheets = True
remove_tags_before = dict(id='content')
remove_tags_after = dict(id='footer')
remove_tags = [dict(name='h1', attrs={'class':'grantland-logo'}),
dict(name='nav'),
dict(name='aside')]

feeds = [(u'Grantland.com', u'http://www.grantland.com/feed')]
i'm having trouble getting this to subdivide the articles by author, though. not sure if it's possible. advice appreciated.
damboris is offline   Reply With Quote
Advert
Old 06-17-2011, 01:47 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
Here's my recipe for Grantland. Just ignore the podcast and everything is fine with the recipe.
Quote:
#created by sexymax15 ....sexymax15@gmail.com
#Grantland recipe

class AdvancedUserRecipe1308288573(BasicNewsRecipe):
title = u'Grantland'
oldest_article = 30
max_articles_per_feed = 20
no_stylesheets = True
use_embedded_content = False

remove_empty_feeds = True
remove_javascript = True
remove_tags_before = dict(id='content')
remove_tags_after = dict(id='footer')
remove_tags = [dict(name='h1', attrs={'class':'grantland-logo'}),
dict(name='nav'),dict(name='aside')]

feeds = [(u'Grantland', u'http://www.grantland.com/feed')]
def print_version(self, url):
return url + '?view=print'
Screenshots:





Attached Files
File Type: zip Grantland_1120.zip (504 Bytes, 155 views)
sexymax15 is offline   Reply With Quote
Old 06-17-2011, 05:56 PM   #4
ubieubie
Member
ubieubie began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2010
Device: none
nevermind problem solved.

Thanks for the recipe

Last edited by ubieubie; 06-17-2011 at 06:00 PM. Reason: figured out problem
ubieubie is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
recipe request chell1948 Recipes 1 06-02-2011 01:23 PM
recipe request Torx Recipes 0 12-20-2010 08:33 AM
Request for recipe exdream Calibre 3 04-24-2010 10:13 AM
Request for Recipe girlperson1 Calibre 2 11-14-2008 07:59 AM
Request for recipe girlperson1 Calibre 2 11-13-2008 10:03 PM


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


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