I've run a quick check on the forum and think that this hasn't been posted up to now, please forgive me otherwise. As the only way of getting the (great) newspaper Courrier International when paying subscription is in .pdf and that it reads terrible on ereaders, I'd like to know if someone would be happy to help me with writing a recipe for it. From what I've read in the wiki & manual it would be somewhere halfway between that of NYTimes and The Economist.
There's already a recipe for Courrier International but from my understanding it's only for the general RSS feed and doesn't give full access to articles available when paying the subscription. Thus, the login bit of the recipe based on that of NYTimes (cf. manual). My problem is that I really don't know anything about python but I suppose the code would be something like:
br = BasicNewsRecipe.get_browser()
if self.username is not None and self.password is not None:
br['USERID'] = self.username
br['PASSWORD'] = self.password
Likewise, based on the recipe for the economist, it gets the URL of the webpage with content of the current issue off the page:
The corresponding page for Courrier International would probably be:
But then I don't know how Calibre get the URL of the current issue from the previous URL. I guess the code selects the first link looking like: http://www.economist.com/printedition/*
from the page so for Courrier International it might be something like getting the first link looking like:
Then it'd have to follow the same parsing method, which I don't know how to parameter either
So would anyone be ready to have a look at it with me?
Thanks very much!