From e4cf8b1f6e70472f639fab179f2cf497baf54b43 Mon Sep 17 00:00:00 2001 From: windlejacob12 Date: Sun, 4 Sep 2022 21:41:07 -0400 Subject: [PATCH] Notes about re-graph --- deps.edn | 3 ++- src/com_jakewindle_git/scraper.clj | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/deps.edn b/deps.edn index cc944c9..9cc70ed 100644 --- a/deps.edn +++ b/deps.edn @@ -1,7 +1,8 @@ {:paths ["src" "resources"] :deps {org.clojure/clojure {:mvn/version "1.11.1"} clj-http/clj-http {:mvn/version "3.12.3"} - hickory/hickory {:mvn/version "0.7.1"}} + hickory/hickory {:mvn/version "0.7.1"} + re-graph/re-graph {:mvn/version "0.2.0"}} :aliases {:run-m {:main-opts ["-m" "com-jakewindle-git.scraper"]} :run-x {:ns-default com-jakewindle-git.scraper diff --git a/src/com_jakewindle_git/scraper.clj b/src/com_jakewindle_git/scraper.clj index 7f0c4ba..87fc0f7 100644 --- a/src/com_jakewindle_git/scraper.clj +++ b/src/com_jakewindle_git/scraper.clj @@ -8,6 +8,9 @@ (def stat-urls ["https://www.espn.com/nfl/stats/team/_/season/2011/seasontype/2" "https://stats.premierlacrosseleague.com/games/2022/whipsnakes-chaos-2022-6-04"]) +;; NOTE - the PLL GraphQL API can be found here: https://api.stats.premierlacrosseleague.com/graphql +;; use this as your query endpoint + (defn not-nil [v] (not (nil? v)))