View Single Post
Old 02-17-2011, 03:02 PM   #2
Finbar127
Member
Finbar127 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Feb 2011
Device: Kindle 3
Figured it out

Code:
from calibre.web.feeds.recipes import BasicNewsRecipe

class AdvancedUserRecipe1297969350(BasicNewsRecipe):
    title = u'Mahopac News'
    description = 'Mahopac News Features'
    oldest_article = 2
    max_articles_per_feed = 100

    feeds = [(u' ', u'http://www.mahopacnews.com/rssheadlines.xml')]

    def print_version(self,url):

          baseURL='http://www.mahopacnews.com/LPprintwindow.LASSO?-token.editorialcall='
          segments = url.split('-')
          printURL = baseURL + segments[5]
        
          return printURL

Last edited by Finbar127; 03-02-2011 at 10:21 PM.
Finbar127 is offline   Reply With Quote