GithubHelp home page GithubHelp logo

badminton_player_level's Introduction

简介

业余比赛如王者之志,非公开组只允许非等级运动员报名。

本项目使用Selenium批量查询等级运动员,并输出简易报告。

安装

  1. Python 的 selenium
pip install selenium
  1. 安装 Chrome

  2. 查看本机Chrome版本号

  3. 安装 Chrome 驱动
    根据版本号搜ChromeDriver Latest Releases Versions Downloads, 将解压后的 chromedriver.exe 放在环境变量 Path 下,如 C:\Users\Administrator\AppData\Local\Programs\Python\Python38

  4. 测试代码

from selenium import webdriver

driver = webdriver.Chrome()
driver.get('https://www.baidu.com/')

使用

  1. 在文件夹【运动员名单】下新建多个.txt文件,每行一个运动员名称
  2. 运行main.py
python main.py

效果

示例数据使用2024年王者之志深圳站运动员名单

注意事项

  1. 人名重复、繁体字、没有注册等原因,可能会导致查不到或查到了但实际该运动员不是等级运动员
  2. 爬的量多或过快会报错

TODO

  1. 去重
  2. 可视化GUI
  3. 截图
  4. 生成举报文档,包含链接地址
  5. 重试机制
  6. 分组输出
  7. 可选不输出非等级运动员

请我喝杯咖啡

如果你认可我的工作,请我喝杯咖啡以示鼓励和支持

badminton_player_level's People

Contributors

vba34520 avatar

Stargazers

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