Giter Site home page Giter Site logo

pta-balloon's Introduction

pta-balloon

1. 简介

用于PTA的气球小工具,可用于CCPC线上比赛发气球使用。

还提供了查看自己队伍在正式队伍中排名的程序。

2. 环境准备

对于Debian/Ubuntu系统(Windows Subsystem for Linux也可以):

apt install php-cli curl

若要使用辅助工具notify.sh来增强提示效果:

apt install sox

3. 气球使用方法

  1. 打开Chrome浏览器,使用教练号登录PTA,进入对应比赛查看排名。

  2. 进入审查元素,然后切换到排名的第二页,再回到第一页,在对应的网络请求上Copy as cURL,然后放入curl_cmd.txt

    1.png

    注:在Windows下此处有两个选项,若直接在Windows下使用php与curl,应使用(cmd),如果整个运行环境在WSL或Linux中,应使用(bash)。

    作者在Windows上直接运行没有成功,建议使用Linux/macOS或在Windows下使用WSL/Linux虚拟机。

  3. 修改check.php$team_key修改为对应学校昵称。

  4. 在当前文件夹执行php check.php,看输出即可。

    效果图

4. 查看正式排名

更新了查看正式排名功能,将正式队伍队名存储到正式队伍.txt中,一行一个,然后运行php rank.php即可。

pta-balloon's People

Contributors

cyyself avatar iphelf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

87ouo

pta-balloon's Issues

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.