Print progress
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user