修改类名

This commit is contained in:
vincent 2023-08-20 14:36:26 +08:00
parent 5efcafa354
commit 30727b6ea8
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
from concurrent.futures import ThreadPoolExecutor
from requester import Requester
from web_parser import Parser
from web_parser import HtmlParser
from web_img import ImgManager
@ -54,7 +54,7 @@ def run_task(task_name: str, url: str):
"""
print(f"{task_name}, 开始下载")
html_content = Requester().fetch_html(url, task_name)
img_url_list = Parser(html_content).get_img_url_list()
img_url_list = HtmlParser(html_content).get_img_url_list()
img_manager = ImgManager(img_url_list, task_name)
img_manager.batch_fill_image_data()

View File

@ -1,7 +1,7 @@
from bs4 import BeautifulSoup
class Parser:
class HtmlParser:
def __init__(self, html_content: str):
self.html_content = html_content