recently login support for Harpers full recipe stopped working. After looking at the site and the code I'm still not sure what it is that is wrong.
I used this to login as a latest version but no luck.
Code:
def get_browser(self):
br = BasicNewsRecipe.get_browser(self)
br.open(self.INDEX)
if self.username is not None and self.password is not None:
br.addheaders.append(('X-Requested-With', 'XMLHttpRequest'))
tt = str(int(time.time() * 1000))
data = urllib.urlencode({ 'm':self.username
,'p':self.password
,'rt':self.INDEX
,'tt':tt
})
br.open(self.LOGIN, data)
return br
The function validate_cds_login in
http://harpers.org/wp-content/themes...s/js/common.js is the one in charge of submitting the login info.
Any ideas what am I missing?