From 250139be3c231a01d1e5ec75bfe76f53c4460fe8 Mon Sep 17 00:00:00 2001 From: JoeamAmier Date: Sat, 26 Aug 2023 10:47:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/Download.py | 11 +++++++++++ source/Explore.py | 8 +++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 source/Download.py diff --git a/source/Download.py b/source/Download.py new file mode 100644 index 0000000..5f2b0f3 --- /dev/null +++ b/source/Download.py @@ -0,0 +1,11 @@ +class Download: + def __init__( + self, + headers: dict, + proxies=None, ): + self.headers = headers + self.proxies = { + "http": proxies, + "https": proxies, + "ftp": proxies, + } diff --git a/source/Explore.py b/source/Explore.py index a2c8b5f..99eaad5 100644 --- a/source/Explore.py +++ b/source/Explore.py @@ -1,2 +1,8 @@ +from re import compile + + class Explore: - pass + explore_data = compile(r'"noteDetailMap": (\{.*?})') + + def __init__(self, html: str): + self.html = html