View Single Post
Old 06-05-2011, 01:02 AM   #3
Junior Member
saultpastor began at the beginning.
Posts: 2
Karma: 10
Join Date: Jun 2011
Device: Calibre
OK, I took a stab at it and what I have so far works. I apologize, I have not had time to find the proper place to post this or look into the procedure for contributing. I will post the code here for the OP. You can cut and paste it into a custom news source under the advanced mode.

import string, re
from calibre import strftime
from import BasicNewsRecipe
from calibre.ebooks.BeautifulSoup import BeautifulSoup

class WorldMag(BasicNewsRecipe):

    title       = 'World Magazine'
    __author__  = 'Saultpastor (a Modification of The New York Times by Kovid Goyal)'
    description = 'World News from a Christian Perspective'
    timefmt = ' [%a, %d %b, %Y]'
    cover_url = ''
    needs_subscription = True

    def get_browser(self):
        br = BasicNewsRecipe.get_browser()
        if self.username is not None and self.password is not None:
            br['username']   = self.username
            br['password'] = self.password
        return br

    feeds          = [(u'Worldmag', u'')]

    def print_version(self, url):
        return url.replace('', '')
I will keep working at it...
saultpastor is offline   Reply With Quote