Code Monkey home page Code Monkey logo

jnu_marathon's Introduction

JNU_Marathon

这是一个用于爬取江南大学2023年马拉松赛事成绩的Python脚本。
该脚本使用Selenium和Requests库来抓取网页数据并保存到CSV文件中。

功能

  • 爬取江南大学马拉松赛事的成绩信息。
  • 将爬取的数据保存为CSV格式。
  • 下载证书图片并保存到本地。
  • 二次爬取第一次未能成功的数据。

环境

  • Python 3
  • Selenium
  • Requests

安装依赖

  1. 确保Python3和pip安装在你的计算机上。然后,克隆这个仓库。

    git clone https://github.com/tinsyding/JNU_Marathon.git
    cd JNU_Marathon
  2. 在项目的根目录下,运行以下命令安装所需依赖:

    pip install -r requirements.txt

使用

  1. 在项目的根目录下,运行:

    python src\\main.py
  2. 按照提示选择一个Web浏览器(Google Chrome、Microsoft Edge、Mozilla Firefox)。

  3. 程序将开始爬取数据并保存到 data 目录下的 data.csv 文件中。

  4. 未能爬取的胸牌号码将被保存在 logs 目录下。

  5. 如果你想二次爬取第一次未能成功的数据,在项目的根目录下,运行:

    python src\\retry_data.py

jnu_marathon's People

Contributors

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