View Single Post
Old 12-14-2009, 05:14 PM   #18
daffy4u
I'm Super Kindle-icious
daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.
 
daffy4u's Avatar
 
Posts: 6,734
Karma: 2434103
Join Date: Apr 2008
Location: Long Drive, Calinadia Candafornia
Device: KDXG, KT, Oasis
Quote:
Originally Posted by jj2me View Post
For Custom recipes, they show up in the Calibre GUI when you click the down-arrow on the right of the "Fetch news" button and select "Add a custom news source", then select a recipe title and click the Advanced tab on the right.
Okay, now I have a better understanding of what you were saying for this part.

Once in the area where you create your own custom feed, there is and option to look at and further customize a built-in recipe. In the case of the L.A. Times, the recipe is actually a Python script not just the normal feeds we pull from the we pull from a web site.

Just a snippet of the code:

Code:
    feeds          = [(u'News', u'http://feeds.latimes.com/latimes/news')
                      ,(u'Local','http://feeds.latimes.com/latimes/news/local')
                      ,(u'MostEmailed','http://feeds.latimes.com/MostEmailed')
                      ,(u'Politics','http://feeds.latimes.com/latimes/news/local/politics/cal/')
                      ,('OrangeCounty','http://feeds.latimes.com/latimes/news/local/orange/')
                      ,('National','http://feeds.latimes.com/latimes/news/nationworld/nation')
                      ,('Politics','http://feeds.latimes.com/latimes/news/politics/')
                      ,('Business','http://feeds.latimes.com/latimes/business')
                      ,('Sports','http://feeds.latimes.com/latimes/sports/')
                      ,('Entertainment','http://feeds.latimes.com/latimes/entertainment/')
                      ]


    def get_article_url(self, article):
        ans = article.get('feedburner_origlink').rpartition('?')[0]
It looks like it might be simple enough to swap out the L.A. Times feeds with other feeds (carefully checking the whole script not just this section).

And it looks like feedburner is used to create the feeds (which I just realized I've used before to create a feed for a Pre app for a site that didn't have an RSS feed).

BTW, I tried to copy and paste the urls directly into my browser and they didn't work, it just sent me to my Google Reader "add a feed" page.

I don't think it can hurt to try, just don't email it to your Kindle until the bugs are worked out. Just fetch it directly into Calibre.

I am going to play with it over the week to see what I can do.
Attached Thumbnails
Click image for larger version

Name:	latimes 1.JPG
Views:	231
Size:	64.8 KB
ID:	41277   Click image for larger version

Name:	latimes 2.JPG
Views:	240
Size:	88.8 KB
ID:	41278   Click image for larger version

Name:	latimes 3.JPG
Views:	244
Size:	66.9 KB
ID:	41279  

Last edited by daffy4u; 12-14-2009 at 05:21 PM. Reason: left out some info
daffy4u is offline   Reply With Quote