mirror of
https://github.com/Sitoi/dailycheckin.git
synced 2024-11-17 13:48:03 +08:00
📝 修改文档
This commit is contained in:
parent
f91b796540
commit
fe32927914
@ -107,7 +107,7 @@
|
||||
|
||||
获取 Cookie 教程(以爱奇艺为例)
|
||||
|
||||
![获取 cookie 教程](https://cdn.jsdelivr.net/gh/Sitoi/dailycheckin/docs/img/iqiyi_cookie.png)
|
||||
![获取 cookie 教程](img/iqiyi_cookie.png)
|
||||
|
||||
1. 进入[爱奇艺官网](https://www.iqiyi.com/)
|
||||
2. 按 `F12` 打开开发者工具,刷新页面
|
||||
@ -164,7 +164,7 @@
|
||||
|
||||
[百度搜索资源平台](https://ziyuan.baidu.com/site/index#/)
|
||||
|
||||
![获取百度云提交链接教程](https://cdn.jsdelivr.net/gh/Sitoi/dailycheckin/docs/img/submit_url.png)
|
||||
![获取百度云提交链接教程](img/submit_url.png)
|
||||
|
||||
- _**BAIDU_URL_SUBMIT_LIST**_.data_url: 提交网站的 URL
|
||||
链接,参考链接:[https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt](https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt)
|
||||
|
@ -2,25 +2,25 @@
|
||||
|
||||
## 一、注册表搜索 sitoi 或者 dailycheckin , 双击下载
|
||||
|
||||
![获取 cookie 教程](https://cdn.jsdelivr.net/gh/Sitoi/dailycheckin/docs/img/synology1.jpg)
|
||||
![获取 cookie 教程](img/synology1.jpg)
|
||||
|
||||
如果注册表储存库没找到,请添加 Docker Hub 库地址:https://registry.hub.docker.com
|
||||
|
||||
![获取 cookie 教程](https://cdn.jsdelivr.net/gh/Sitoi/dailycheckin/docs/img/synology2.jpg)
|
||||
![获取 cookie 教程](img/synology2.jpg)
|
||||
|
||||
## 二、映像 下载完成 双击或者点击启动开始创建
|
||||
|
||||
![获取 cookie 教程](https://cdn.jsdelivr.net/gh/Sitoi/dailycheckin/docs/img/synology3.jpg)
|
||||
![获取 cookie 教程](img/synology3.jpg)
|
||||
|
||||
点击高级设置,设置卷,按照下图添加文件夹和装载路径
|
||||
|
||||
![获取 cookie 教程](https://cdn.jsdelivr.net/gh/Sitoi/dailycheckin/docs/img/synology4.jpg)
|
||||
![获取 cookie 教程](img/synology4.jpg)
|
||||
|
||||
![获取 cookie 教程](https://cdn.jsdelivr.net/gh/Sitoi/dailycheckin/docs/img/synology5.jpg)
|
||||
![获取 cookie 教程](img/synology5.jpg)
|
||||
|
||||
群晖内本地文件夹请自行创建
|
||||
|
||||
![获取 cookie 教程](https://cdn.jsdelivr.net/gh/Sitoi/dailycheckin/docs/img/synology6.jpg)
|
||||
![获取 cookie 教程](img/synology6.jpg)
|
||||
|
||||
```text
|
||||
.
|
||||
@ -33,22 +33,22 @@
|
||||
```
|
||||
|
||||
如图,设置好直接点应用,其他默认,可按需点击高级设置里的启用自动重新启动,以防机器意外重启出现脚本停止现象。
|
||||
![获取 cookie 教程](https://cdn.jsdelivr.net/gh/Sitoi/dailycheckin/docs/img/synology7.jpg)
|
||||
![获取 cookie 教程](img/synology7.jpg)
|
||||
|
||||
## 三、回到容器,如图即是运行成功
|
||||
|
||||
![获取 cookie 教程](https://cdn.jsdelivr.net/gh/Sitoi/dailycheckin/docs/img/synology8.jpg)
|
||||
![获取 cookie 教程](img/synology8.jpg)
|
||||
|
||||
## 四:配置测试
|
||||
|
||||
1、双击容器查看进程,如下图说明正在运行
|
||||
|
||||
![获取 cookie 教程](https://cdn.jsdelivr.net/gh/Sitoi/dailycheckin/docs/img/synology9.jpg)
|
||||
![获取 cookie 教程](img/synology9.jpg)
|
||||
|
||||
2、日志查看运行状态
|
||||
|
||||
![获取 cookie 教程](https://cdn.jsdelivr.net/gh/Sitoi/dailycheckin/docs/img/synology10.jpg)
|
||||
![获取 cookie 教程](img/synology10.jpg)
|
||||
|
||||
3、执行脚本之后自动生成的脚本
|
||||
|
||||
![获取 cookie 教程](https://cdn.jsdelivr.net/gh/Sitoi/dailycheckin/docs/img/synology11.jpg)
|
||||
![获取 cookie 教程](img/synology11.jpg)
|
||||
|
@ -24,4 +24,4 @@
|
||||
|
||||
进入函数 → 触发管理 → 新建触发器 → 安装下图进行配置
|
||||
|
||||
![触发器配置](https://cdn.jsdelivr.net/gh/Sitoi/dailycheckin/docs/img/scf_timer.png)
|
||||
![触发器配置](img/scf_timer.png)
|
||||
|
126
setup.py
126
setup.py
@ -1,126 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
import io
|
||||
import os
|
||||
import sys
|
||||
from os import walk
|
||||
from os.path import isfile, join
|
||||
from shutil import rmtree
|
||||
|
||||
from setuptools import Command, find_packages, setup
|
||||
|
||||
NAME = 'dailycheckin'
|
||||
FOLDER = 'dailycheckin'
|
||||
DESCRIPTION = 'dailycheckin'
|
||||
EMAIL = '133397418@qq.com'
|
||||
AUTHOR = 'Sitoi'
|
||||
REQUIRES_PYTHON = '>=3.6.0'
|
||||
VERSION = None
|
||||
|
||||
|
||||
def read_file(filename):
|
||||
with open(filename) as fp:
|
||||
return fp.read().strip()
|
||||
|
||||
|
||||
def read_requirements(filename):
|
||||
return [line.strip() for line in read_file(filename).splitlines()
|
||||
if not line.startswith('#')]
|
||||
|
||||
|
||||
REQUIRED = read_requirements('requirements.txt')
|
||||
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
try:
|
||||
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
|
||||
long_description = '\n' + f.read()
|
||||
except FileNotFoundError:
|
||||
long_description = DESCRIPTION
|
||||
|
||||
about = {}
|
||||
if not VERSION:
|
||||
with open(os.path.join(here, FOLDER, '__version__.py')) as f:
|
||||
exec(f.read(), about)
|
||||
else:
|
||||
about['__version__'] = VERSION
|
||||
|
||||
|
||||
def package_files(directories):
|
||||
paths = []
|
||||
for item in directories:
|
||||
if isfile(item):
|
||||
paths.append(join('..', item))
|
||||
continue
|
||||
for (path, directories, filenames) in walk(item):
|
||||
for filename in filenames:
|
||||
paths.append(join('..', path, filename))
|
||||
return paths
|
||||
|
||||
|
||||
class UploadCommand(Command):
|
||||
description = 'Build and publish the package.'
|
||||
user_options = []
|
||||
|
||||
@staticmethod
|
||||
def status(s):
|
||||
"""Prints things in bold."""
|
||||
print('\033[1m{0}\033[0m'.format(s))
|
||||
|
||||
def initialize_options(self):
|
||||
pass
|
||||
|
||||
def finalize_options(self):
|
||||
pass
|
||||
|
||||
def run(self):
|
||||
try:
|
||||
self.status('Removing previous builds…')
|
||||
rmtree(os.path.join(here, 'dist'))
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
self.status('Building Source and Wheel (universal) distribution…')
|
||||
os.system('{0} setup.py sdist bdist_wheel --universal'.format(sys.executable))
|
||||
|
||||
self.status('Uploading the package to PyPI via Twine…')
|
||||
os.system('twine upload dist/*')
|
||||
|
||||
sys.exit()
|
||||
|
||||
|
||||
setup(
|
||||
name=NAME,
|
||||
version=about['__version__'],
|
||||
description=DESCRIPTION,
|
||||
long_description=long_description,
|
||||
long_description_content_type='text/markdown',
|
||||
author=AUTHOR,
|
||||
author_email=EMAIL,
|
||||
python_requires=REQUIRES_PYTHON,
|
||||
url="https://sitoi.cn",
|
||||
project_urls={
|
||||
'Documentation': 'https://sitoi.gitee.io/dailycheckin/',
|
||||
},
|
||||
packages=find_packages(exclude=('config',)),
|
||||
install_requires=REQUIRED,
|
||||
include_package_data=True,
|
||||
license='MIT',
|
||||
zip_safe=False,
|
||||
entry_points={
|
||||
'console_scripts': ['dailycheckin = dailycheckin.index:checkin']
|
||||
},
|
||||
classifiers=[
|
||||
'License :: OSI Approved :: MIT License',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Programming Language :: Python :: 3.7',
|
||||
'Programming Language :: Python :: 3.8',
|
||||
'Programming Language :: Python :: 3.9',
|
||||
'Programming Language :: Python :: Implementation :: CPython',
|
||||
'Programming Language :: Python :: Implementation :: PyPy'
|
||||
],
|
||||
# $ setup.py publish support.
|
||||
cmdclass={
|
||||
'upload': UploadCommand,
|
||||
},
|
||||
)
|
Loading…
Reference in New Issue
Block a user