From 695fbe36f002a62544c1fe354b6716bb90e9096b Mon Sep 17 00:00:00 2001 From: Andrew Zhang Date: Fri, 13 Apr 2018 12:26:00 -0500 Subject: [PATCH] fixed issue with 'http://scholar.google.com/https://link.springer.com/chapter/10.1007/3-540-61750-7_36' python3 scholar.py --author "Margaret fleck" | grep link.springer --- scholar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scholar.py b/scholar.py index 13ccd43..2f616bc 100755 --- a/scholar.py +++ b/scholar.py @@ -512,7 +512,7 @@ def _as_int(obj): def _path2url(self, path): """Helper, returns full URL in case path isn't one.""" - if path.startswith('http://'): + if path.startswith('http://') or path.startswith('https://'): return path if not path.startswith('/'): path = '/' + path