一个腾讯文档自动签到的简单实现
使用项目内的requirements.txt安装依赖
pip install -r requirements.txt
只需项目目录中运行即可
python main.py
for those who use Windows, you need to use ./
python ./main.py
And here is a more general way is to run the script
<path of python.exe> <path to main.py>
运行项目内的register.py即可
python register.py
main.py
为主程序
localConfig.json
为配置文件
trivial.ipynb
为测试文件, Jupyter Notebook 格式
logs
为日志文件夹,每天运行会生成一个日志文件,该文件夹必须存在于项目目录下,否则程序会报错
requirements.txt
为依赖文件
其中,localConfig.json
的配置如下
{
"whereami": "<your location>",
"reference_pos": [
"<row number of the reference position>",
"<column number of the reference position>"
],
"doc_url": "<doc url>",
"user": {
"<user name in utf-8>": "<distance to the reference position>",
"\u5510\u6d77\u6210": 1,
"\u674e\u6587\u950b": 2,
"\u9ad8\u6cfd\u68ee": -2,
"\u5362\u56fd\u6d69": 13
},
"cookies": ["<your cookies>"]
}