blob: ed2143318dbe25f897501caa7ef23104df397371 [file] [log] [blame]
Het Satasiyac34b3ea2022-02-06 17:28:49 -08001load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
Het Satasiyac6df3322022-02-05 14:12:30 -08002
Philipp Schraderd3fac192022-03-02 20:35:46 -08003filegroup(
4 name = "test_data",
5 srcs = [
6 # Generated with: bazel run //scouting/scraping:scraping_demo -- --json
7 "test_data/2016_nytr.json",
Philipp Schrader30005e42022-03-06 13:53:58 -08008 "test_data/2020_fake.json",
Yash Chainani87d06442022-04-16 20:59:47 -07009 # 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 Schraderd3fac192022-03-02 20:35:46 -080011 ],
12 visibility = ["//visibility:public"],
13)
14
Het Satasiyac6df3322022-02-05 14:12:30 -080015go_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 Satasiyac34b3ea2022-02-06 17:28:49 -080025
26go_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)