Skip to main content

A simple web scraping program to get data from HEMA Scorecard to text files for OBS to consume.

Project description

HEMA Scorecard Scraper

A simple web scraping program to get data from HEMA Scorecard to text files for OBS to consume. Created for IFG's Tournament of the Roses 2026. It is not affiliated with HEMA Scorecard in any way.

Legal Notice

By using this software you agree to only use the web scraper during events and test runs of events. There exist several safeguards to try and prevent you from spamming HEMA Scorecard with http requests, but if you modify the software, that may occur. For that reason, any modifications to this software must not poll the site more the 5 times per secound and must retain the original timeout of 8 hours or less.

Don't make me take this package offline.

This work is licensed under CC BY-SA 4.0

Installation

This guide is for unix based systems, commands for Windows installation may vary.

  1. Ensure you have Python 3 installed.

  2. Run python3 -m pip -install hema_scorecard_scraper though a terminal.

Usage

Once HEMA Scorecard Scraper has been installed, you can start the program from the terminal using the command python3 -m hema_scorecard_scraper.scraper_console.

While the scraper is running, you should have a console in the terminal that you can type commands into. Note that the scraper console is in the "stopped" position by default and you will need to run the start command to start fetching data. Files will be outputted into a directory named out located wherever you are running the program from.

Commands

help

Displays this list of commands.

next

Switches the scraper to track the next match by match number. Normally this will advance to the next match in the pool, but if you are at the end of a pool, it will advance to the next pool. Also writes the data to the files immidently.

prev

Same as the next command except it increments the match number down, not up.

start

Starts running the scraper in the background. Updates every half second. The scraper is initially in the stopped position so you will have to run this command once to get things going once you have it pointed at the right match. If the program is still running 8 hours after you've started this command, it will time out run the stop command. This is meant to prevent someone from leaving this program running in the background by accident.

stop

Stops the scraper running in the background.

quit

Exits the program entirely.

<url>

Sets the scraper to track a specific match. The indended use case is for you to copy the url of the match from the HEMA Scorecard site, and paste it into the console. (You do not need to type <url>, just enter the url itsself.)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hema_scorecard_scraper-0.1.2.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hema_scorecard_scraper-0.1.2-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file hema_scorecard_scraper-0.1.2.tar.gz.

File metadata

  • Download URL: hema_scorecard_scraper-0.1.2.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for hema_scorecard_scraper-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7c299e15412988ec272ae498660e494a65c28ba2c5ae0c30988bb39892bcf985
MD5 a116e9989263a3ee8c0aa7d7c6ad4815
BLAKE2b-256 6b63c8a0e8305e05f9a74ad2c73f1374a293c09c8a19f92f25c49bc740b56a79

See more details on using hashes here.

File details

Details for the file hema_scorecard_scraper-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for hema_scorecard_scraper-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 29e2b9abb4c96b9ff606f15ac70f2ec8e8001c6d4e3a03c7707e22fac06cfdc6
MD5 b8dc7af0e7aa783ab7ddf73e939ca520
BLAKE2b-256 8fcb731f75471872d5d290e871fe4e6bdfc8a861fc8f03d70d9129c5bcd4fd4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page