From 6d8a93cf3d1b542e15991fc825bc29d8b08216ac Mon Sep 17 00:00:00 2001 From: linek Date: Sat, 26 Aug 2017 23:50:50 +0200 Subject: [PATCH] update login url --- getmyancestors.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/getmyancestors.py b/getmyancestors.py index bdb5960..c8b0494 100755 --- a/getmyancestors.py +++ b/getmyancestors.py @@ -50,11 +50,10 @@ class Session: def login(self): while True: try: - url = 'https://familysearch.org/auth/familysearch/login' + url = 'https://www.familysearch.org/auth/familysearch/login' if self.verbose: self.logfile.write('[' + time.strftime("%Y-%m-%d %H:%M:%S") + ']: Downloading: ' + url + '\n') r = requests.get(url, params={'ldsauth': False}, allow_redirects=False) - url = r.headers['Location'] if self.verbose: self.logfile.write('[' + time.strftime("%Y-%m-%d %H:%M:%S") + ']: Downloading: ' + url + '\n') -- 2.52.0