Update login for harpers_full.recipe

Updated login endpoint for “Harper’s Magazine - articles from printed
edition”. The login stopped working a few months ago, resulting in all
articles being abbreviated with “Please sign in…”.

New endpoint was found by inspecting the harpers.org index and tested
with `ebook-convert`.
This commit is contained in:
Timothy Palpant 2015-09-27 10:19:00 -04:00
parent 4b01882f33
commit a34bd654db

View File

@ -29,7 +29,7 @@ class Harpers_full(BasicNewsRecipe):
needs_subscription = 'optional'
masthead_url = 'http://harpers.org/wp-content/themes/harpers/images/pheader.gif'
publication_type = 'magazine'
LOGIN = 'http://harpers.org/wp-content/themes/harpers/ajax_login.php'
LOGIN = 'http://harpers.org/wp-admin/admin-ajax.php'
extra_css = """
body{font-family: adobe-caslon-pro,serif}
.category{font-size: small}
@ -55,7 +55,8 @@ class Harpers_full(BasicNewsRecipe):
br.open('http://harpers.org/')
if self.username is not None and self.password is not None:
tt = time.localtime()*1000
data = urllib.urlencode({ 'm':self.username
data = urllib.urlencode({ 'action':'cds_auth_user'
,'m':self.username
,'p':self.password
,'rt':'http://harpers.org/'
,'tt':tt