View Single Post
Old 03-07-2014, 04:05 PM   #15
aerodynamik
Enthusiast
aerodynamik doesn't litteraerodynamik doesn't litter
 
Posts: 43
Karma: 136
Join Date: Mar 2011
Device: Kindle Paperwhite
OK, here we go. They must have changed something that requires the login.html to have a valid referrer URL. Skip the try / except from before and just replace the getbrowser section with the follwing. The real change to the original recipe is the URL in br.open now containing the ?backUrl part.

PHP Code:
br BasicNewsRecipe.get_browser(self)
        if 
self.username is not None and self.password is not None:
            
br.open(self.PREFIX '/meinspiegel/login.html?backUrl=' self.PREFIX '/spiegel/print')
            
br.select_form(predicate=has_login_name)
            
br['f.loginName'] = self.username
            br
['f.password'] = self.password
            br
.submit()
        return 
br 
I took a quick look at the resulting eBook. Doesn't look as nice as I remember it, e.g. unnecessary information at the end of each article, headers not clipped correctly, some articles without a header at all.

Is this just in my Kindle output or do you experience the same?
aerodynamik is offline   Reply With Quote