#!/usr/bin/python3 # -*- coding: utf-8 -*- import argparse from pathlib import Path import re from typing import Set import requests from tqdm import tqdm from project_settings import project_path def get_args(): parser = argparse.ArgumentParser() parser.add_argument( "--data_dir", default=(project_path / "data/yazhou").as_posix(), type=str ) args = parser.parse_args() return args page_list_pattern = r"""

(?:.*?)(.*?)

""" page_list_pattern = str(page_list_pattern).strip() content_pattern = r"""
(.*?)