class style, rename

This commit is contained in:
BennyThink
2021-01-18 22:26:02 +08:00
parent 368f6b260b
commit 0dee0fcacf
9 changed files with 672 additions and 601 deletions

31
yyetsbot/config.py Normal file
View File

@@ -0,0 +1,31 @@
# coding: utf-8
# YYeTsBot - config.py
# 2019/8/15 18:42
__author__ = 'Benny <benny.think@gmail.com>'
import os
BASE_URL = "http://www.rrys2020.com"
LOGIN_URL = "http://www.rrys2020.com/user/login"
GET_USER = "http://www.rrys2020.com/user/login/getCurUserTopInfo"
SEARCH_URL = "http://www.rrys2020.com/search?keyword={kw}&type=resource"
AJAX_LOGIN = "http://www.rrys2020.com/User/Login/ajaxLogin"
SHARE_URL = "http://www.rrys2020.com/resource/ushare"
SHARE_WEB = "http://got002.com/resource.html?code={code}"
# http://got002.com/api/v1/static/resource/detail?code=9YxN91
SHARE_API = "http://got002.com/api/v1/static/resource/detail?code={code}"
WORKERS = "https://yyets.yyetsdb.workers.dev/?id={id}"
TOKEN = os.environ.get("TOKEN") or "TOKEN"
USERNAME = os.environ.get("USERNAME") or "USERNAME"
PASSWORD = os.environ.get("PASSWORD") or "password"
PROXY = os.environ.get("PROXY")
MAINTAINER = os.environ.get("MAINTAINER")
REDIS = os.environ.get("REDIS") or "redis"
REPORT = os.environ.get("REPORT") or False
OFFLINE = os.environ.get("OFFLINE") or False
FIX_RESOURCE = "https://www.zimuxia.cn/portfolio/{name}"
FIX_SEARCH = "https://www.zimuxia.cn/?s={name}"