![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2017
Device: Kindle Paperwhite
|
Subscription question
As a newbie, can someone please point me to documentation, or educate me, about how Calibre handles periodicals that require paid subscriptions for full content?
As I scan the list of news periodicals in Calibre, the titles don't appear to indicate whether subscriptions are required. If you DO have a paid subscription (such as I do, to the Washington Post), is it necessary to create one's own custom recipe to get full content? The standard WaPo recipe in Calibre just brings in the free content. I have now created a custom recipe by adding the "needs_subscription = True" line, but I'm wondering if this is always what must be done, and whether there's any way to know which periodicals are restricted. Thanks! |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Any recipe that supports subscriber content will ask you for your username and password when you try to subscribe to it. Try for example the wall street journal.
As for WaPo, just adding needs_subscription = True is not enough, you also have to implement the actual login code in the recipe see https://manual.calibre-ebook.com/news.html |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2017
Device: Kindle Paperwhite
|
I've implemented the code below in my custom recipe, but I get an error, no form matching name 'wpIdnSignInForm'.
def get_browser(self): br = BasicNewsRecipe.get_browser(self) if self.username is not None and self.password is not None: br.open('https://subscribe.washingtonpost.com/loginregistration/index.html#/register/group/long?action=login') br.select_form(name='wpIdntSignInForm') br['username'] = self.username br['password'] = self.password br.submit() return br |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That page looks like it uses javascript for login so the login will not be that easy. You'll need to capture the login POST request using a browser's develeopment tools and manually send the request in the recipe instead of just filling in a form.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Subscription basics please! | guspasho | Recipes | 0 | 04-30-2012 04:42 PM |
subscription problem w/ O-K and 1.8 | plaid | Kobo Reader | 10 | 03-08-2011 12:42 PM |
Fictionwise Question re: Ellery Queen Subscription | Marcy | Deals and Resources (No Self-Promotion or Affiliate Links) | 4 | 01-06-2010 02:39 PM |
Quick Question about Subscription on these forums | MerLock | Lounge | 7 | 05-08-2009 10:08 AM |
So I have this subscription... | Gideon | Calibre | 9 | 02-20-2009 06:49 PM |