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

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


Thread Tools Search this Thread
Old 10-16-2016, 08:59 AM   #1
Junior Member
n3rts began at the beginning.
Posts: 1
Karma: 10
Join Date: Oct 2016
Device: Kindle
Subscription based recipe help!

Hi there,

I'm trying to create a recipe for an italian newspaper called "IlFoglio".
This is based on their RSS feed here:
and attempts to login to the site (using my details)

Is there any good soul out there able to help me on this?
Please note this is a variation of the built in recipe for this newspaper.

#!/usr/bin/env python2
# vim:fileencoding=utf-8
import string, re
from calibre import strftime
from import BasicNewsRecipe
from calibre.ebooks.BeautifulSoup import BeautifulSoup

class Ilfoglio2(BasicNewsRecipe):

    title       = 'Ilfoglio'
    __author__  = 'n3rts'
    description = 'Daily news from the ilFoglio'
    timefmt = ' [%a, %d %b, %Y]'
    needs_subscription = True
    no_stylesheets = True

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

    def parse_index(self):
        soup = self.index_to_soup('')

Last edited by PeterT; 10-16-2016 at 03:02 PM. Reason: adding code tags to preserve indentations
n3rts is offline   Reply With Quote

recipe, subscription

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Australian Subscription recipe broken OzNick Recipes 2 11-10-2015 09:12 PM
The Australian Subscription recipe failing rayh Recipes 2 05-28-2013 01:16 AM
New recipe for nrc•next (subscription version) vdHummes Recipes 3 05-10-2013 11:14 AM
recipe for newspaper subscription NicoDeMus! Recipes 0 11-24-2011 05:02 PM
How to use recipe with subscription from command line miwie Calibre 3 11-23-2010 04:10 AM

All times are GMT -4. The time now is 11:10 AM. is a privately owned, operated and funded community.