From 64140f7729169b6092ed10329e05f88913ae8abe Mon Sep 17 00:00:00 2001 From: JoeamAmier Date: Fri, 1 Sep 2023 19:22:51 +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 | 2 ++ source/Explore.py | 2 ++ source/Html.py | 2 ++ source/Image.py | 2 ++ source/Manage.py | 3 +++ source/Settings.py | 2 ++ source/Video.py | 2 ++ source/__init__.py | 3 +++ 8 files changed, 18 insertions(+) diff --git a/source/Download.py b/source/Download.py index 4b55088..30b7c35 100644 --- a/source/Download.py +++ b/source/Download.py @@ -3,6 +3,8 @@ from pathlib import Path from requests import exceptions from requests import get +__all__ = ['Download'] + class Download: diff --git a/source/Explore.py b/source/Explore.py index 111b672..838c8e3 100644 --- a/source/Explore.py +++ b/source/Explore.py @@ -2,6 +2,8 @@ from datetime import datetime from json import loads from re import compile +__all__ = ['Explore'] + class Explore: explore_data = compile( diff --git a/source/Html.py b/source/Html.py index b0e4377..f39c621 100644 --- a/source/Html.py +++ b/source/Html.py @@ -2,6 +2,8 @@ from requests import ReadTimeout from requests import exceptions from requests import get +__all__ = ['Html'] + class Html: diff --git a/source/Image.py b/source/Image.py index 12da051..a91a89e 100644 --- a/source/Image.py +++ b/source/Image.py @@ -1,5 +1,7 @@ from re import compile +__all__ = ['Image'] + class Image: IMAGE_API = "https://sns-img-qc.xhscdn.com/" diff --git a/source/Manage.py b/source/Manage.py index 7df364c..a20d6da 100644 --- a/source/Manage.py +++ b/source/Manage.py @@ -1,3 +1,6 @@ +__all__ = ['Manager'] + + class Manager: def __init__(self): pass diff --git a/source/Settings.py b/source/Settings.py index 270ed6e..b1583db 100644 --- a/source/Settings.py +++ b/source/Settings.py @@ -2,6 +2,8 @@ from json import dump from json import load from pathlib import Path +__all__ = ['Settings'] + class Settings: path = Path("./settings.json") diff --git a/source/Video.py b/source/Video.py index ae3d16f..1d9f064 100644 --- a/source/Video.py +++ b/source/Video.py @@ -1,5 +1,7 @@ from re import compile +__all__ = ['Video'] + class Video: VIDEO_ID = compile(r'"masterUrl":"(.*?)"') diff --git a/source/__init__.py b/source/__init__.py index 7e0c9a9..4f69383 100644 --- a/source/__init__.py +++ b/source/__init__.py @@ -5,8 +5,11 @@ from .Explore import Explore from .Html import Html from .Image import Image from .Manage import Manager +from .Settings import Settings from .Video import Video +__all__ = ['XHS', 'Settings'] + class XHS: headers = {