Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-01-2017, 12:59 PM   #1
MansfieldMan
Junior Member
MansfieldMan began at the beginning.
 
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!
MansfieldMan is offline   Reply With Quote
Old 07-01-2017, 01:09 PM   #2
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: 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
kovidgoyal is offline   Reply With Quote
Advert
Old 07-01-2017, 02:41 PM   #3
MansfieldMan
Junior Member
MansfieldMan began at the beginning.
 
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
MansfieldMan is offline   Reply With Quote
Old 07-01-2017, 11:49 PM   #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: 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.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 01:05 AM.


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