Skip to content

Instantly share code, notes, and snippets.

View pingzh's full-sized avatar

Ping Zhang pingzh

View GitHub Profile
from typing import Optional
from pathlib import Path
from configparser import ConfigParser # type: ignore
DEFAULT_CONF_PATH = Path(__file__).parent / "default_conf.cfg"
CONFIG_FILE_NAME = "config_name.cfg"
class DefaultableConfigParser(ConfigParser):
import sys
import asyncio
import time
import httpx
from bs4 import BeautifulSoup
from urllib.parse import urljoin
from concurrent.futures import ThreadPoolExecutor, Executor, ProcessPoolExecutor
def get_links():