Print progress

This commit is contained in:
tom5079
2020-10-05 19:26:36 +09:00
parent 9706057ec3
commit 2dc282f358

View File

@@ -3,6 +3,8 @@
import re import re
import json import json
import sys
import requests import requests
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
@@ -12,7 +14,7 @@ tags = dict()
count_regex = re.compile(r".+\((\d+)\)$") count_regex = re.compile(r".+\((\d+)\)$")
for index in indices: for index in indices:
print('.', end='') print('.', end='', file=sys.stderr)
url = f'https://hitomi.la/alltags-{index}.html' url = f'https://hitomi.la/alltags-{index}.html'
soup = BeautifulSoup(requests.get(url).text, 'html.parser') soup = BeautifulSoup(requests.get(url).text, 'html.parser')