From a34bd654db4f0d93af5dfb80e87ef571503049f2 Mon Sep 17 00:00:00 2001 From: Timothy Palpant Date: Sun, 27 Sep 2015 10:19:00 -0400 Subject: [PATCH] Update login for harpers_full.recipe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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`. --- recipes/harpers_full.recipe | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/harpers_full.recipe b/recipes/harpers_full.recipe index 24778925d3..f38c83d4bc 100644 --- a/recipes/harpers_full.recipe +++ b/recipes/harpers_full.recipe @@ -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