Giter Club home page Giter Club logo

scraping_hyrox's Introduction

Hyrox Web Scraper

This project is a web scraper designed to collect detailed information about participants from the Hyrox race event website. It is implemented using Python and utilizes libraries such as requests, BeautifulSoup, and csv for web scraping and data handling.

Features

Scrapes participant details, scoring information, workout results, and overall times from the Hyrox website. Dynamically constructs URLs to access race event pages based on specified seasons and divisions. Handles pagination to ensure comprehensive data collection across multiple pages. Extracts additional information such as gender and event ID from the URL query parameters. Flattens nested data structures and organizes the scraped data into a structured format. Saves the scraped data to a CSV file for further analysis or use in other applications. Provides progress tracking and time estimation during the scraping process.

Usage

Copy Collab Notebook: https://colab.research.google.com/drive/1HGHGh4XYU-Vx9T4NOTK4PkbCehHPGkEB?usp=drive_link

Data Structure

The scraped data is structured as follows:

Participant details are stored in a dictionary with keys such as "Name", "Age Group", "Number", and "Nat". Scoring information is stored in a dictionary with keys such as "Division" and "Race". Workout results are stored as a list of dictionaries, each containing the split name, time, and place. Overall time is stored in a dictionary with keys such as "Overall Time", "Rank (AG)", and "Rank (M/W)". Gender and event ID are extracted from the URL query parameters and added as separate fields. The data is flattened and organized into a CSV file with the following columns:

Event ID Participant_Name Gender Participant_Age Group Participant_Number Participant_Nat Scoring_Race Scoring_Division Overall Time_Rank (M/W) Overall Time_Rank (AG) Overall Time_Overall Time Specific split columns (e.g., Running_1, 1000m_SkiErg, etc.) Contributing Contributions to this project are welcome. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License This project is licensed under the MIT License.

scraping_hyrox's People

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.