View Single Post
Old 06-11-2013, 09:17 AM   #3
JeffreyZhao
Junior Member
JeffreyZhao began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2013
Device: Kindle Paperwhite
Quote:
Originally Posted by Steven630 View Post
Of course, but you need to post your recipe here.
Thanks, it's just very simple one. I've created a test recipe.

Code:
class TestRecipe(BasicNewsRecipe):
    title = u'Test'
    auto_cleanup = True
    no_stylesheets = True
    publication_type = 'magazine'
    
    def parse_index(self):
        article_list = []
        article_list.append({ 'title' : 'Article 1', 'url' : 'http://lostechies.com/jimmybogard/2013/06/07/distributed-systems-reading-list/' });
        article_list.append({ 'title' : 'Article 2', 'url' : 'http://lostechies.com/jimmybogard/2011/05/27/distributed-computing-fallacies-and-rest/' });
                
        return [('Default', article_list)]
Can I put two articles into different sections?
JeffreyZhao is offline   Reply With Quote