https://github.com/ericdaugherty/gotsport-scraper
An HTML Scraping tool for the www.gotsport.com website.
https://github.com/ericdaugherty/gotsport-scraper
Last synced: 3 months ago
JSON representation
An HTML Scraping tool for the www.gotsport.com website.
- Host: GitHub
- URL: https://github.com/ericdaugherty/gotsport-scraper
- Owner: ericdaugherty
- License: mit
- Created: 2015-10-01T21:46:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-01T22:39:55.000Z (over 10 years ago)
- Last Synced: 2025-08-15T07:51:49.204Z (10 months ago)
- Language: Go
- Size: 141 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GotSport.com HTML Screen Scraper
This is a GoLang library that parses schedule information from the
www.gotsport.com website. It currently parses the schedule page, ie:
http://events.gotsport.com/events/schedule.aspx and provides a list of games
in a JSON enabled GoLang struct.
## Usage
Here is a simple program that queries for a tournement schedule and pretty-prints the results as JSON.
```
package main
import (
"encoding/json"
"fmt"
"github.com/ericdaugherty/gotsport-scraper"
)
func main() {
params := map[string]string{
"EventID": "15267",
"GroupID": "166875",
"Gender": "Boys",
"Age": "12",
}
schedule, err := scraper.GetSchedule(params)
if err != nil {
fmt.Println("Error Occured:", err)
}
bytes, err := json.MarshalIndent(schedule, "", " ")
if err != nil {
fmt.Println("Error Occured:", err)
}
fmt.Println("Schedule:", string(bytes))
}
```
## License
This code is available for use under the MIT License. See the LICENSE file.