]> Nutra Git (v1) - gamesguru/getmyancestors.git/commitdiff
update login url
authorlinek <benoitfontaine.ba@gmail.com>
Sat, 26 Aug 2017 21:50:50 +0000 (23:50 +0200)
committerlinek <benoitfontaine.ba@gmail.com>
Sat, 26 Aug 2017 21:50:50 +0000 (23:50 +0200)
getmyancestors.py

index bdb5960ba173d52382103980288c4f40a0312787..c8b04941a4636cda756d97e4c8492ec50e02025b 100755 (executable)
@@ -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')