|11-17-2012, 08:27 AM||#1|
Join Date: Nov 2012
Recipe for Courrier International Abonné
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:
def get_browser(self): br = BasicNewsRecipe.get_browser() if self.username is not None and self.password is not None: br.open('http://www.courrierinternational.com/login') br.select_form(name='login') br['USERID'] = self.username br['PASSWORD'] = self.password br.submit() return br
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!
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Recipe for "Le monde édition abonné"||darkl||Recipes||13||02-19-2013 10:04 PM|
|Kindle 3 3G International Coverage US vs International model||fidjit||Amazon Kindle||4||02-04-2012 07:19 AM|
|Help international||Mr Whippy||Amazon Kindle||4||10-04-2011 03:47 PM|
|Recipe works when mocked up as Python file, fails when converted to Recipe||ode||Recipes||7||09-04-2011 04:57 AM|
|Hardware des nouvelles fraîches du "courrier" de microsoft !||zelda_pinwheel||Forum Français||5||05-04-2010 07:22 AM|