Giter Site home page Giter Site logo

healthy_everyday's Introduction

自动报健康

新增出校申请 out_every_day.py

通用配置

安装 python 模块

pip install selenium

更改配置

  • 新建 user_info.txt,逐行添加用户名和密码(格式为一行学号一行密码,中间和结尾无空行)
  • 更改 crontab.txtupload.py 的绝对路径
  • 修改 auto_upload.py#! 路径
  • 运行如下命令实现定时启动
# 自动执行
crontab crontab.txt

Ubuntu server 配置

安装Chrome

# 下载
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

# 安装
sudo dpkg -i google-chrome*.deb

# 如果上一步出现问题,运行
sudo apt update
sudo apt install -fy

# 查看版本
google-chrome --version

安装驱动

下载地址

wget https://sites.google.com/a/chromium.org/chromedriver/downloads
unzip chromedriver_linux64.zip
mv chromedriver /usr/bin

docker 配置,不全不建议使用

docker build . -t healthy_every_day
docker run -Pit healthy_every_day

# 在 user_info.txt 中添加学号姓名,可以添加多人,要求中间无空行,结尾无空行。

ctrl + pq

healthy_everyday's People

Contributors

quaeast avatar

Watchers

 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.