From 2dc282f35897ba7af3063780cbbb6818b36a4d8d Mon Sep 17 00:00:00 2001 From: tom5079 Date: Mon, 5 Oct 2020 19:26:36 +0900 Subject: [PATCH] Print progress --- scripts/tags.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/tags.py b/scripts/tags.py index c1926f23..0782cc0e 100644 --- a/scripts/tags.py +++ b/scripts/tags.py @@ -3,6 +3,8 @@ import re import json +import sys + import requests from bs4 import BeautifulSoup @@ -12,7 +14,7 @@ tags = dict() count_regex = re.compile(r".+\((\d+)\)$") for index in indices: - print('.', end='') + print('.', end='', file=sys.stderr) url = f'https://hitomi.la/alltags-{index}.html' soup = BeautifulSoup(requests.get(url).text, 'html.parser')