更新代码

This commit is contained in:
JoeamAmier
2023-09-01 19:22:51 +08:00
parent 9fafe470e0
commit 64140f7729
8 changed files with 18 additions and 0 deletions

View File

@@ -3,6 +3,8 @@ from pathlib import Path
from requests import exceptions
from requests import get
__all__ = ['Download']
class Download:

View File

@@ -2,6 +2,8 @@ from datetime import datetime
from json import loads
from re import compile
__all__ = ['Explore']
class Explore:
explore_data = compile(

View File

@@ -2,6 +2,8 @@ from requests import ReadTimeout
from requests import exceptions
from requests import get
__all__ = ['Html']
class Html:

View File

@@ -1,5 +1,7 @@
from re import compile
__all__ = ['Image']
class Image:
IMAGE_API = "https://sns-img-qc.xhscdn.com/"

View File

@@ -1,3 +1,6 @@
__all__ = ['Manager']
class Manager:
def __init__(self):
pass

View File

@@ -2,6 +2,8 @@ from json import dump
from json import load
from pathlib import Path
__all__ = ['Settings']
class Settings:
path = Path("./settings.json")

View File

@@ -1,5 +1,7 @@
from re import compile
__all__ = ['Video']
class Video:
VIDEO_ID = compile(r'"masterUrl":"(.*?)"')

View File

@@ -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 = {