JonathanOppenheimer / MileSplit-Ranks-Web-Scraper

A lightweight node.js web scraper to acquire, and then format the ranked list of runners for events listed in MileSplit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MileSplit-Ranks-Web-Scraper

A lightweight node.js web scraper to acquire, and then format the ranked list of runners for events listed in MileSplit.

Table of Contents

Explanation of Function

If you've ever run XC or T&F at a non-professional level, your results were probably posted to MileSplit, the "premier network for track & field and cross country." Essentially, they host all the results of various races and meets throughout the United States and publish them in a navigable format with specific meet results, results by athlete, results by event, and so on, available. Unfortunately, a good deal of use of MileSplit requires a paid subscription to MileSplit.

having to pay image

This scraper aims to provide a similarily readable ranked list of athletes by gender/region/event without a subscription to MileSplit. These lists ican be helpful when determining advancement to future meets or if you're just curious!

Installation and Use

  1. Download and install node
  2. Either download or clone the repository
  3. cd into the downloaded/extracted folder
  4. Run npm install
  5. Edit the URL of the rank list you'd like to scrape and gain access to
  6. Run node gatherBasicInfo.js followed by node getTimesAndNames.js
  7. The times are now viewable. Open output/output.htmlin your preferred web browser.

To save your results, copy the contents of the output folder to an external destination (e.g. your documents file). Running the program again with a different rank list URL will overwrite the existing output.

Sample Output

sample image

About

A lightweight node.js web scraper to acquire, and then format the ranked list of runners for events listed in MileSplit.

License:MIT License


Languages

Language:JavaScript 63.4%Language:HTML 34.5%Language:CSS 2.1%