View Single Post
Old 01-20-2016, 01:16 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,424
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, IMO creating special purpose DSLs is a much harder to learn solution and much less flexible than using a well known and well designed programming language.

All you need to do is

Code:
    def parse_feeds(self):
          feeds = BasicNewsRecipe.parse_feeds(self)
          # do whatever you want with the feeds object, use print statements to see what it looks like
          return feeds
EDIT: Or if you prefer to work with parse_index, since ou've already started down that road, just use the python feedparser module to parse the RSS feed

Last edited by kovidgoyal; 01-20-2016 at 01:19 AM.
kovidgoyal is online now   Reply With Quote