An open API service indexing awesome lists of open source software.

https://github.com/flopp/go-parkrunparser

A Go module to parse various parkrun webpages
https://github.com/flopp/go-parkrunparser

parkrun

Last synced: 10 months ago
JSON representation

A Go module to parse various parkrun webpages

Awesome Lists containing this project

README

          

[![PkgGoDev](https://pkg.go.dev/badge/github.com/flopp/go-parkrunparser)](https://pkg.go.dev/github.com/flopp/go-parkrunparser)
[![Go Report Card](https://goreportcard.com/badge/github.com/flopp/go-parkrunparser)](https://goreportcard.com/report/flopp/go-parkrunparser)
[![License MIT](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](https://github.com/flopp/go-parkrunparser/)

# go-parkrunparser
A Go module to parse various parkrun webpages

* `events.json` -> `func ParseEvents(buf []byte) (Events, error)`
* `eventshistory` -> `func ParseEventHistory(buf []byte) (EventHistory, error)`
* `results/123`, `latestresults` -> `func ParseResults(buf []byte) (Results, error)`

Note: the package will *not download* any files from the parkrun webpage!

## Users

go-parkrunparser is currently used by

* https://gitbug.com/flopp/parkrun-map
* https://gitbug.com/flopp/parkrun-milestones