Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 03-12-2011, 12:01 AM   #1
fbrian
Junior Member
fbrian began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2011
Device: Kindle 3G
Recipe Request for World Magazine

Hi, I am a guy who has never done programing, and the recipes just confuse me when I try to create one. I am in Christian Ministry and would like to have the newsfeed from World Magazine downloaded by Calibre to send to my Kindle 3G. Would anyone be willing to try and create one.

I did the simple create your own but it gives a lot of excess material and all the comments left by visitors are downloaded too. All I want are the articles.

The feed address is www.worldmag.com/rss/

If anyone is willing I'll give more information.

Thanks,
Brian
fbrian is offline   Reply With Quote
Old 06-01-2011, 05:10 PM   #2
saultpastor
Junior Member
saultpastor began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2011
Device: Calibre
I too would appreciate any help making a recipe for this magazine.
saultpastor is offline   Reply With Quote
 
Advertisement
Old 06-05-2011, 01:02 AM   #3
saultpastor
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.

Code:
import string, re
from calibre import strftime
from calibre.web.feeds.recipes 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 = 'http://www.worldmag.com/images/world_logo.gif'
    needs_subscription = True

    def get_browser(self):
        br = BasicNewsRecipe.get_browser()
        if self.username is not None and self.password is not None:
            br.open('http://www.worldmag.com/cs/')
            br.select_form(name='maglogin')
            br['username']   = self.username
            br['password'] = self.password
            br.submit()
        return br

    feeds          = [(u'Worldmag', u'https://www.worldmag.com/rss/')]

    def print_version(self, url):
        return url.replace('http://www.worldmag.com/articles/', 'http://www.worldmag.com/printer.cfm?id=')
I will keep working at it...
saultpastor is offline   Reply With Quote
Old 06-05-2011, 11:10 AM   #4
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: 26,309
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Posting recipes here when they are ready for inclusion is fine, just let me know when you think the recipe is ready.
kovidgoyal is online now   Reply With Quote
Reply

Tags
world magazine, worldmag.com

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request: Wired Magazine UK StalkS Recipes 4 06-10-2011 04:08 PM
Recipe request: World Journal teraflame Recipes 0 03-09-2011 02:11 PM
SPIN Magazine recipe Quistopher Recipes 0 01-27-2011 10:04 PM
Reason Magazine request c0llin Recipes 0 11-29-2010 04:00 PM
Create recipe for magazine BlonG Recipes 0 10-26-2010 08:46 AM


All times are GMT -4. The time now is 06:36 AM.


MobileRead.com is a privately owned, operated and funded community.