diff --git a/gdown/download.py b/gdown/download.py index 5298b828..d3d17f8f 100644 --- a/gdown/download.py +++ b/gdown/download.py @@ -21,7 +21,7 @@ home = osp.expanduser("~") -def get_url_from_gdrive_confirmation(contents): +def _get_url_from_gdrive_confirmation(contents): url = "" for line in contents.splitlines(): m = re.search(r'href="(\/uc\?export=download[^"]+)', line) @@ -242,7 +242,7 @@ def download( # Need to redirect with confirmation try: - url = get_url_from_gdrive_confirmation(res.text) + url = _get_url_from_gdrive_confirmation(res.text) except FileURLRetrievalError as e: message = ( "Failed to retrieve file url:\n\n{}\n\n"