Skip to content

Commit

Permalink
fix requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ZianTT committed Jun 15, 2024
1 parent d2b85e8 commit 02de9b0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 342 deletions.
2 changes: 1 addition & 1 deletion api.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def get_token(self):
info = self.get_prepare()
if info == {}:
logger.warning("未开放购票或被风控,请检查配置问题,休息1s")
# time.sleep(1)
time.sleep(1)
self.get_token()
if info["token"]:
logger.success(
Expand Down
329 changes: 0 additions & 329 deletions auth.py

This file was deleted.

6 changes: 0 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@
from loguru import logger

from api import BilibiliHyg
from auth import *
from globals import *
from login import *
from web import *

common_project_id = [
{"name": "上海·BilibiliWorld 2024", "id": 85939},
Expand Down Expand Up @@ -99,10 +97,6 @@ def main():

config = load_config()

logger.info(f"正在打开 http://127.0.0.1:{port} 以完成验证码")
logger.info(f"同时,你也可以通过手机打开 http://你的电脑内网地址:{port} 来完成验证码")
# os.system(f"start http://127.0.0.1:{port}")

while True:
if "cookie" not in config:
config["cookie"] = interactive_login()
Expand Down
8 changes: 2 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
fastapi
loguru
pillow
pycryptodome
pydantic
pyinstaller
qrcode
requests
sentry-sdk
uvicorn
WMI
kdl-py
kdl
bili_ticket_gt_python==0.2.0

0 comments on commit 02de9b0

Please sign in to comment.