Code Monkey home page Code Monkey logo

bupt_dailycheck-'s Introduction

Auto_Check_plus

2022/3/15
by Xuan

环境准备

1.python

下载地址:https://www.python.org/downloads/windows/
(py 3.7.8):https://www.python.org/downloads/release/python-378rc1/

2.selenium库

win+R输入cmd 打开cmd

pip install selenium

3.浏览器 (以edge为例,其余同理)

参考文章:https://blog.csdn.net/tk1023/article/details/109078613

浏览器驱动下载地址:https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/

设置-关于Microphone Edge中查询浏览器版本并下载对应版本驱动

驱动安装:

1.解压安装包
2.将msedgedriver.exe文件移动至python安装目录
(默认为C:\Users\**\AppData\Local\Programs\Python\Python3*

  • 注:此版本不需要修改msedgedriver.exe文件名

代码修改

在第40、41行填入自己的账号密码
data.xls中更改(以下代码弃用)

if __name__ == '__main__':
    account = "****"
    password = "****"
    if login(account, password) is True:
        report()

    sleep(5)
    driver.close()

设置计划任务

参考文章:https://blog.csdn.net/mooncrystal123/article/details/83586780

打开任务计划程序应用

点击创建任务(基本任务)

设置

自行设置运行时间

保存,运行

bupt_dailycheck-'s People

Contributors

qianmoxsn 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.