View Single Post
Old 10-25-2011, 08:17 AM   #1
Morias
Junior Member
Morias began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2010
Device: Kindle
How to update The Australian recipe for the new subscription model

The Australian newspaper has moved to a Freemium model and now requires a subscription to view most content in full.

Can someone who knows what they are doing please update the Recipe file. Thank you in advance.

I tried adding part of The Wallstreet Journal recipe to make it login, but failed as it now stops loading the newspaper after a couple of seconds.

This is what I did:

needs_subscription = True

def get_browser(self):
br = BasicNewsRecipe.get_browser()
if self.username is not None and self.password is not None:
br.open('http://www.theaustralian.com.au/login')
br.select_form(nr=1)
br['user'] = self.username
br['password'] = self.password
res = br.submit()
raw = res.read()
if 'Thankyou,' not in raw:
raise ValueError('Failed to log in, check your '
'username and password')
return br
Morias is offline   Reply With Quote