Het Satasiya | c34b3ea | 2022-02-06 17:28:49 -0800 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") |
Het Satasiya | c6df332 | 2022-02-05 14:12:30 -0800 | [diff] [blame] | 2 | |
Philipp Schrader | d3fac19 | 2022-03-02 20:35:46 -0800 | [diff] [blame] | 3 | filegroup( |
| 4 | name = "test_data", |
| 5 | srcs = [ |
| 6 | # Generated with: bazel run //scouting/scraping:scraping_demo -- --json |
| 7 | "test_data/2016_nytr.json", |
Philipp Schrader | 30005e4 | 2022-03-06 13:53:58 -0800 | [diff] [blame] | 8 | "test_data/2020_fake.json", |
Yash Chainani | 87d0644 | 2022-04-16 20:59:47 -0700 | [diff] [blame^] | 9 | # Generated with: bazel run scouting/scraping:scraping_demo -- -category rankings -json >scouting/scraping/test_data/2016_nytr_rankings.json |
| 10 | "test_data/2016_nytr_rankings.json", |
Philipp Schrader | d3fac19 | 2022-03-02 20:35:46 -0800 | [diff] [blame] | 11 | ], |
| 12 | visibility = ["//visibility:public"], |
| 13 | ) |
| 14 | |
Het Satasiya | c6df332 | 2022-02-05 14:12:30 -0800 | [diff] [blame] | 15 | go_library( |
| 16 | name = "scraping", |
| 17 | srcs = [ |
| 18 | "scrape.go", |
| 19 | "types.go", |
| 20 | ], |
| 21 | importpath = "github.com/frc971/971-Robot-Code/scouting/scraping", |
| 22 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 23 | visibility = ["//visibility:public"], |
| 24 | ) |
Het Satasiya | c34b3ea | 2022-02-06 17:28:49 -0800 | [diff] [blame] | 25 | |
| 26 | go_binary( |
| 27 | name = "scraping_demo", |
| 28 | srcs = ["scraping_demo.go"], |
| 29 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 30 | visibility = ["//visibility:public"], |
| 31 | deps = [ |
| 32 | "scraping", |
| 33 | "@com_github_davecgh_go_spew//spew:go_default_library", |
| 34 | ], |
| 35 | ) |