From 1ca27a60b2a97d8fb34de2ba1a01d87f18095a48 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 4 Feb 2019 22:07:59 -0800 Subject: [PATCH] show dots as progress bar for titles fetching --- archivebox/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/archivebox/util.py b/archivebox/util.py index 2a81bda9..6ddb68ab 100644 --- a/archivebox/util.py +++ b/archivebox/util.py @@ -234,6 +234,7 @@ def fetch_page_title(url, default=True): try: sys.stdout.write('.') + sys.stdout.flush() html_content = urllib.request.urlopen(url, timeout=10).read().decode('utf-8') match = re.search('(.*?)', html_content) return match.group(1) if match else default or None