Giter Site home page Giter Site logo

lenovo-sign's Introduction

lenovo-sign

联想智选签到

本地使用

  1. 克隆本仓库
git clone https://github.com/marigold233/lenovo-sign.git
  1. 安装依赖
pip3 install -r requirements.txt
  1. config.toml填入你的账号和选择推送通知的类型,也可以不选择推送,不填即可
  2. 测试运行脚本
python3 lenovo_sign.py
  1. 加入crontab计划任务
# 查看python3解释器绝对路径,crontab里面要写解释器绝对路径
which python3
/usr/local/bin/python3
# 每天上午九点运行
0 9 * * * /usr/local/bin/python3 /root/lenovo_sign.py &> lenovo_sign.log

腾讯云函数使用

  1. 将云函数目录里面的index.py代码复制粘贴到腾讯云函数里面的index.py
  2. 创建文件config.toml,将config.toml里面的配置也复制进去
  3. 安装requirements.txt里面的依赖
cd src
pip3 install requests toml --upgrade -t .
  1.   在config.toml按照配置你的账号和选择推送通知的类型,也可以不选择推送,不填即可
  2. 完成!部署测试

阿里云函数使用

  1. 将云函数目录里面的index.py代码复制粘贴到阿里云函数里面的index.py
  2. 创建文件config.toml,将config.toml里面的配置也复制进去
  3. 安装requirements.txt里面的依赖
pip3 install requests toml --upgrade -t .
  1.   在config.toml按照配置你的账号和选择推送通知的类型,也可以不选择推送,不填即可
  2. 完成!部署测试

青龙面板使用

  1. 安装脚本依赖requests toml
  2. 把文件lenovo_sign.py,config.toml上传到青龙面板
  3. config.toml里面填写账号和推送
  4. 完成!进行测试

支持推送消息类型

  • server酱
  • 企业微信应用
  • 钉钉群机器人

更新

  • 2022.10.26
    1. 优化云函数代码
    2. 获取乐豆和延保信息失败导致脚本出现异常,对异常进行处理
  • 2022.10.19
    1. 多账号签到,账号密码错过略过,不影响下面签到的账号
  • 2022.10.18
    1. 优化代码
  • 2022.10.13  
    1. 钉钉推送
  • 2022.08.16
    1. 添加签到消息推送
  • 2022.08.07
    1. 修复签到不给延保的问题  
  • 2022.06.20  
    1. 优化本地版本  
    2. 支持云函数  
  • 2022.06.17  
    1. 支持类手机签到,送延保券。以前的版本不给。

lenovo-sign's People

Contributors

marigold233 avatar yunak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.