Giter Site home page Giter Site logo

szpt_ehall's Introduction

SZPT_Ehall

SZPT关于防疫期间学生信息每日线上填报爬虫

基于https://github.com/AtmosphereMao/SZPT_Ehall_xsjkxxbs 第一版修改

功能

  • 一键填报

    • 自动爬取表单并填报
    • 填报状态可以发送到邮箱进行通知
  • 自动填报

    • Linux配合crontab实现自动填报
    • Windows开机填报或任务计划自动填报

注意:如果行程或相关信息有变更,一定要手动填报以更新表单。本脚本可以用来解放双手,但一定要配合防疫工作。

安装

运行环境:Python3

安装第三方库:pip install -r requirements.txt

使用教程

config.ini

配置config.ini,配置用户名密码,邮箱,此时就可以运行了,如果需要实现自动填报,可以往下看。

[root@test]# python3 SZPT_Ehall.py 
[+] 登录成功
[+] 今日已经填报,填报时间:2021-01-28 10:20:21

配置自动填报的话,可以在config.ini文件中配置time_sleep = 60随机延时1~60秒运行。

自动填报

Linux填报

配置mission_plan目录里的linux文件,修改相应路径及时间,添加权限并运行linux文件。

注:运行linux文件会重置crontab内容,请做好备份,或将crontab的内容写入到linux文件中。

Windows自动填报

配置mission_plan目录里的windows.vbs文件,修改相应路径。在Windows自带的任务计划程序中添加该文件,定时运行以实现自动填报。

Windows开机填报/一键填报

Windows也可以将windows.vbs文件放在开机启动项里,Win10路径:C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp

登录进去就会自动运行填报程序了,但是刚开机如果没有网络,会导致填报失败,可以将windows.vbs放到桌面,双击一键填报。

注意:如果行程有变更,一定要手动填报以更新表单。

如果行程或相关信息有变更,一定要手动填报以更新表单。本脚本可以用来解放双手,但一定要配合防疫工作。

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.